Skip to content

Commit 596ec94

Browse files
skip check for contracts diff when label is present
1 parent e91fe7c commit 596ec94

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/contracts-publish-compiled-artifacts.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ on:
2525
jobs:
2626
changes:
2727
name: Detect changes
28+
if: ${{ !(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'build-publish-contracts')) }}
2829
runs-on: ubuntu-latest
2930
outputs:
3031
ton_changes: ${{ steps.changes.outputs.ton_changes }}
@@ -47,8 +48,9 @@ jobs:
4748
name: Build Nix pkg and publish tarball
4849
needs: [ changes ]
4950
if: |
50-
(needs.changes.outputs.ton_changes == 'true' || github.event_name == 'workflow_dispatch') &&
51-
(github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'build-publish-contracts'))
51+
needs.changes.outputs.ton_changes == 'true' ||
52+
github.event_name == 'workflow_dispatch' ||
53+
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'build-publish-contracts'))
5254
runs-on: ubuntu-latest
5355
permissions:
5456
contents: write

0 commit comments

Comments
 (0)