diff --git a/.github/workflows/preview-env-fork.yml b/.github/workflows/preview-env-fork.yml index 4c40b19544..cea0e57759 100644 --- a/.github/workflows/preview-env-fork.yml +++ b/.github/workflows/preview-env-fork.yml @@ -1,68 +1,74 @@ name: preview-env-fork-setup-update on: - workflow_run: - workflows: ["check-label-preview-env"] - types: [completed] + workflow_dispatch: + inputs: + PR_NUMBER: + type: string + required: true + TRIGGERING_ACTOR: + type: string + required: true + COMMIT_SHA: + type: string + required: true jobs: - deploy: + update-initial-status: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} - permissions: - pull-requests: write - steps: - - name: Download PR number artifact - uses: dawidd6/action-download-artifact@v2 - with: - workflow: ${{ github.event.workflow_run.workflow_id }} - name: pr.txt - - name: Save PR number - id: pr - run: | - echo "::set-output name=id::$(