From d9e6e192520d14b115e0266a63a1557cde15caf8 Mon Sep 17 00:00:00 2001 From: ShyPixie Date: Tue, 3 Oct 2023 01:41:36 -0300 Subject: [PATCH] [CI] don't generate artifacts/badges when not using account actor --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 98c866b..f02acfb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -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 @@ -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] @@ -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: