Refine and actualise the boilerplate #1
Workflow file for this run
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: Push Test Artifacts | |
on: | |
pull_request: | |
# to test this flow: add labeled or synchronize for testing and comment job condition | |
types: [closed] | |
# Target branch for the PR | |
branches: | |
- "main" | |
jobs: | |
push-test-artifacts: | |
if: github.event.pull_request.merged == true | |
name: Publish Test Artifacts | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'write' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get Test Artifacts | |
run: | | |
gh run download --dir .cover/ -n test-artifacts-pr-${{ github.event.pull_request.node_id }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: make push-test-artifacts | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |