Testing Queue Runner #105
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: Testing Queue Runner | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| issue_number: | |
| description: 'Associated Pull Requests number' | |
| required: true | |
| tmp-ci-branch: | |
| description: 'Temporary CI branch name' | |
| required: true | |
| concurrency: | |
| group: merge-queue | |
| cancel-in-progress: false | |
| jobs: | |
| PreTesting: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| outputs: | |
| base-branch: ${{ steps.pretesting.outputs.base-branch }} | |
| base-branch-sha: ${{ steps.pretesting.outputs.base-branch-sha }} | |
| steps: | |
| - uses: yamachu/merge-queue-action/pretesting@main | |
| id: pretesting | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| pr-number: ${{ github.event.inputs.issue_number }} | |
| tmp-ci-branch: ${{ github.event.inputs.tmp-ci-branch }} | |
| Test: | |
| uses: ./.github/workflows/csharp_test.yml | |
| with: | |
| checkout-ref: ${{ github.event.inputs.tmp-ci-branch }} | |
| needs: [PreTesting] | |
| PostTesting: | |
| runs-on: ubuntu-latest | |
| needs: [PreTesting, Test] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Generate a token | |
| id: generate_token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - uses: yamachu/merge-queue-action/posttesting@main | |
| with: | |
| github-token: ${{ steps.generate_token.outputs.token }} | |
| base-branch: ${{ needs.PreTesting.outputs.base-branch }} | |
| base-branch-sha: ${{ needs.PreTesting.outputs.base-branch-sha }} | |
| pr-number: ${{ github.event.inputs.issue_number }} | |
| merge-method: 'squash' | |
| - run: | |
| git push origin --delete ${{ github.event.inputs.tmp-ci-branch }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |