Skip to content

Commit

Permalink
[CI] don't generate artifacts/badges when not using account actor
Browse files Browse the repository at this point in the history
  • Loading branch information
calendulish committed Oct 3, 2023
1 parent 05cce42 commit d9e6e19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, workflow_dispatch]

jobs:
delete-old-artifacts:
if: github.event_name != 'pull_request'
if: github.actor == 'calendulish'
runs-on: ubuntu-latest
steps:
- name: Harden Runner
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
dist/
if-no-files-found: error
retention-days: 90
if: github.event_name != 'pull_request'
if: github.actor == 'calendulish'
rpi-build:
if: ${{ always() }}
needs: delete-old-artifacts
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
artifacts/dist/
if-no-files-found: error
retention-days: 90
if: github.event_name != 'pull_request'
if: github.actor == 'calendulish'
windows-build:
if: ${{ always() }}
needs: delete-old-artifacts
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
installer/build/*.exe
if-no-files-found: error
retention-days: 90
if: github.event_name != 'pull_request'
if: github.actor == 'calendulish'
deploy:
if: startsWith(github.ref, 'refs/tags/')
needs: [linux-build, windows-build, rpi-build]
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
verbose: true
print_hash: true
generate-badges:
if: ${{ always() && github.event_name != 'pull_request' }}
if: ${{ always() && github.actor == 'calendulish' }}
needs: [linux-build, windows-build, rpi-build]
runs-on: ubuntu-latest
env:
Expand Down

0 comments on commit d9e6e19

Please sign in to comment.