forked from lthn/blockchain
Update workflow conditions and release action config
Allows user 'Snider' to trigger build jobs on PRs they author, in addition to the existing approval-based condition. Removes 'continue-on-error: true' from the release step in the upload-artifacts action to ensure failures are not ignored.
This commit is contained in:
parent
ba6252ed58
commit
9875287811
2 changed files with 21 additions and 9 deletions
1
.github/actions/upload-artifacts/action.yml
vendored
1
.github/actions/upload-artifacts/action.yml
vendored
|
|
@ -61,7 +61,6 @@ runs:
|
|||
|
||||
- name: Make Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
continue-on-error: true
|
||||
with:
|
||||
tag_name: ${{ inputs.chain-network }}-${{ inputs.release-tag }}
|
||||
prerelease: contains(inputs.chain-network, 'testnet')
|
||||
|
|
|
|||
29
.github/workflows/_on-pr.yml
vendored
29
.github/workflows/_on-pr.yml
vendored
|
|
@ -16,49 +16,62 @@ concurrency:
|
|||
jobs:
|
||||
build-linux-intel:
|
||||
name: Chain
|
||||
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
||||
if: |
|
||||
(github.actor == 'Snider' && github.event.pull_request.user.login == 'Snider') ||
|
||||
(github.event.review.state == 'approved' && !github.event.pull_request.draft)
|
||||
uses: ./.github/workflows/build-linux-intel.yml
|
||||
with:
|
||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||
|
||||
build-linux-arm:
|
||||
name: Chain
|
||||
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
||||
if: |
|
||||
(github.actor == 'Snider' && github.event.pull_request.user.login == 'Snider') ||
|
||||
(github.event.review.state == 'approved' && !github.event.pull_request.draft)
|
||||
uses: ./.github/workflows/build-linux-arm64.yml
|
||||
with:
|
||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||
|
||||
build-windows-intel:
|
||||
name: Chain
|
||||
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
||||
if: |
|
||||
(github.actor == 'Snider' && github.event.pull_request.user.login == 'Snider') ||
|
||||
(github.event.review.state == 'approved' && !github.event.pull_request.draft)
|
||||
uses: ./.github/workflows/build-windows-intel.yml
|
||||
with:
|
||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||
|
||||
build-macos-arm64:
|
||||
name: Chain
|
||||
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
||||
if: |
|
||||
(github.actor == 'Snider' && github.event.pull_request.user.login == 'Snider') ||
|
||||
(github.event.review.state == 'approved' && !github.event.pull_request.draft)
|
||||
uses: ./.github/workflows/build-macos-arm64.yml
|
||||
with:
|
||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||
|
||||
build-macos-intel:
|
||||
name: Chain
|
||||
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
||||
if: |
|
||||
(github.actor == 'Snider' && github.event.pull_request.user.login == 'Snider') ||
|
||||
(github.event.review.state == 'approved' && !github.event.pull_request.draft)
|
||||
uses: ./.github/workflows/build-macos-intel.yml
|
||||
with:
|
||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||
|
||||
build-docker:
|
||||
name: Docker
|
||||
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
||||
if: |
|
||||
(github.actor == 'Snider' && github.event.pull_request.user.login == 'Snider') ||
|
||||
(github.event.review.state == 'approved' && !github.event.pull_request.draft)
|
||||
uses: ./.github/workflows/build-docker.yml
|
||||
with:
|
||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||
secrets: inherit
|
||||
|
||||
build-docs:
|
||||
|
||||
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
||||
name: Docs
|
||||
if: |
|
||||
(github.actor == 'Snider' && github.event.pull_request.user.login == 'Snider') ||
|
||||
(github.event.review.state == 'approved' && !github.event.pull_request.draft)
|
||||
uses: ./.github/workflows/build-docs.yml
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue