Reorg tiering policy sections into manage tiering #14397
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Repository Dispatch | |
uses: peter-evans/repository-dispatch@26b39ed245ab8f31526069329e112ab2fb224588 | |
with: | |
token: ${{ secrets.ORG_AUTOMATION_TOKEN }} | |
repository: timescale/web-documentation | |
event-type: build-docs-content | |
client-payload: '{"branch": "${{ steps.timescale.outputs.DEV_FOLDER }}", "pr_number": "${{ env.PR_NUMBER }}"}' | |
- 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> |