Fix 409s when uploading files for the first time #3630
Workflow file for this run
This file contains hidden or 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: close-featurebranch | |
| on: | |
| pull_request: | |
| types: [closed, unlabeled] | |
| workflow_dispatch: | |
| inputs: | |
| BRANCH: | |
| type: string | |
| description: Which featurebranch branch to destroy? | |
| required: true | |
| jobs: | |
| release: | |
| if: | | |
| (github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'feature-branch')) || | |
| github.event.label.name == 'feature-branch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: passeidireto/trigger-external-workflow-action@main | |
| env: | |
| PAYLOAD_BRANCH: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.BRANCH || github.head_ref }} | |
| PAYLOAD_PR_NUMBER: ${{ github.event.pull_request.number }} | |
| with: | |
| repository: budibase/featurebranches | |
| event: featurebranch-qa-close | |
| github_pat: ${{ secrets.GH_ACCESS_TOKEN }} |