Skip to content

Commit

Permalink
Merge pull request #7689 from Tribler/feature/binaries_to_actions
Browse files Browse the repository at this point in the history
Upload binaries by label
  • Loading branch information
drew2a committed Nov 14, 2023
2 parents 5074a49 + 5024824 commit d018d66
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/!PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
outputs:
python-version: '3.8'
source-ref: refs/pull/${{github.event.pull_request.number}}/merge
upload-binaries: >-
${{ contains(github.event.pull_request.labels.*.name, 'PR: upload binaries') }}
steps:
- run: echo done

Expand Down Expand Up @@ -141,7 +144,7 @@ jobs:
if: ${{needs.changes.outputs.build == 'true' && !github.event.pull_request.draft}}
uses: ./.github/workflows/build_ubuntu.yml
with:
upload: false
upload: ${{ needs.env.outputs.upload-binaries == 'true' }}
os: ubuntu-latest
python-version: ${{needs.env.outputs.python-version}}
ref: ${{needs.env.outputs.source-ref}}
Expand All @@ -151,7 +154,7 @@ jobs:
if: ${{needs.changes.outputs.build == 'true' && !github.event.pull_request.draft}}
uses: ./.github/workflows/build_mac.yml
with:
upload: false
upload: ${{ needs.env.outputs.upload-binaries == 'true' }}
os: macos-latest
python-version: ${{needs.env.outputs.python-version}}
ref: ${{needs.env.outputs.source-ref}}
Expand All @@ -161,7 +164,7 @@ jobs:
if: ${{needs.changes.outputs.build == 'true' && !github.event.pull_request.draft}}
uses: ./.github/workflows/build_windows.yml
with:
upload: false
upload: ${{ needs.env.outputs.upload-binaries == 'true' }}
os: windows-latest
python-version: ${{needs.env.outputs.python-version}}
ref: ${{needs.env.outputs.source-ref}}
Expand Down

0 comments on commit d018d66

Please sign in to comment.