Skip to content

Rework backup and storage with tabs #17417

Rework backup and storage with tabs

Rework backup and storage with tabs #17417

Workflow file for this run

name: Deploy docs to dev
on:
- pull_request
- workflow_dispatch
env:
PR_NUMBER: ${{ github.event.number }}
jobs:
trigger:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
permissions:
pull-requests: write
name: Docs dev deploy
runs-on: ubuntu-latest
steps:
- name: Set variables
id: timescale
run: |
echo "DEV_FOLDER=$(echo ${GITHUB_HEAD_REF})" >> $GITHUB_OUTPUT
echo "HYPHENATED_BRANCH_NAME=$(echo "${GITHUB_HEAD_REF}" | sed 's|/|-|' | sed 's/\./-/g')" >> $GITHUB_ENV
- name: Workflow dispatch
uses: benc-uk/workflow-dispatch@v1
with:
workflow: deploy-dev.yml
repo: timescale/web-documentation
inputs: '{"branch": "${{ steps.timescale.outputs.DEV_FOLDER }}", "pr_number": "${{ env.PR_NUMBER }}"}'
token: ${{ secrets.ORG_AUTOMATION_TOKEN }}
ref: production-v3
- name: Write comment
uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: |
Allow 10 minutes from last push for the staging site to build. If the link doesn't work, try using incognito mode instead. For internal reviewers, check web-documentation repo actions for staging build status. Link to build for this PR: <a href="https://docs-dev.timescale.com/docs-${{ env.HYPHENATED_BRANCH_NAME }}" target="_blank">http://docs-dev.timescale.com/docs-${{ env.HYPHENATED_BRANCH_NAME }}</a>