Skip to content

feat(list): drag and drop reordering (#DS-4454) #199

feat(list): drag and drop reordering (#DS-4454)

feat(list): drag and drop reordering (#DS-4454) #199

# Triggered workflow by PR comment: /redeploy-preview
#
# ⚠️ This job checks out and builds PR-controlled code with a Firebase deployment secret.
# Only comment /redeploy-preview after reviewing the PR's contents — the author_association
# check below only verifies the commenter, not the safety of the code being built.
name: Redeploy documentation preview
on:
issue_comment:
types: [created]
# Read-only default; the write scopes this workflow needs are granted on the job itself, so a
# future job added here does not silently inherit them.
permissions:
contents: read
jobs:
redeploy:
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/redeploy-preview') && contains(fromJSON('["OWNER", "MEMBER"]'), github.event.comment.author_association) }}
runs-on: ubuntu-latest
permissions:
checks: write # for FirebaseExtended/action-hosting-deploy to create a check run
contents: read # for actions/checkout to read the repository
pull-requests: write # for FirebaseExtended/action-hosting-deploy to comment on PRs
steps:
- uses: xt0rted/pull-request-comment-branch@e8b8daa837e8ea7331c0003c9c316a64c6d8b0b1 # v3.0.0
id: comment-branch
- uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
message: 🔄 [Redeploying](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) documentation preview.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}
- uses: ./.github/workflows/actions/setup-node
- uses: ./.github/workflows/actions/build-packages
- uses: ./.github/workflows/actions/build-docs
- uses: FirebaseExtended/action-hosting-deploy@500ac625ca2dd40cbd15f7659af953801858032a # v0.11.0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KOOBIQ }}'
firebaseToolsVersion: '15.3.1'
expires: 3d
channelId: prs-${{ github.event.issue.number }}
projectId: koobiq
target: next
- uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
if: ${{ failure() }}
with:
message: 🚨 Failed to [redeploy](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) documentation preview.