Skip to content

Commit

Permalink
skip steps with secrets from forks (#2591)
Browse files Browse the repository at this point in the history
  • Loading branch information
noandrea authored Dec 12, 2023
1 parent 2b9982e commit 433dda2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,7 @@ jobs:
with:
moonwall_environment: dev_${{ matrix.chain }}
- name: Upload HTML report to s3
if: |
github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'push'
if: ${{ !github.event.pull_request.head.repo.fork}}
uses: mario-sangar/upload-s3-action@master
id: S3
with:
Expand Down Expand Up @@ -503,9 +502,8 @@ jobs:
runs-on: ubuntu-latest
needs: ["set-tags", "build"]
if: |
${{needs.set-tags.outputs.image_exists}} == 'false' &&
(github.event.pull_request.head.repo.full_name == github.repository ||
github.event_name == 'push')
${{! needs.set-tags.outputs.image_exists }} &&
${{! github.event.pull_request.head.repo.fork }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 433dda2

Please sign in to comment.