Skip to content

Commit

Permalink
Merge pull request #1202 from Homebrew/fix_ci
Browse files Browse the repository at this point in the history
workflows/tests: fix master/scheduled CI.
  • Loading branch information
MikeMcQuaid authored May 26, 2024
2 parents d67f5c7 + 2d26c0e commit a615178
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,12 @@ jobs:
with:
bundler-cache: true

- name: Create directories
run: mkdir -p _data/analytics api/analytics

- name: Update analytics data
run: /usr/bin/rake analytics
if: github.event.pull_request.head.repo.fork == false && (github.event_name == 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]')
if: github.ref_name == 'master' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && github.event.pull_request.user.login != 'dependabot[bot]')
env:
HOMEBREW_INFLUXDB_TOKEN: ${{ secrets.HOMEBREW_INFLUXDB_READ_TOKEN }}

Expand Down Expand Up @@ -193,7 +196,7 @@ jobs:
run: ./script/validate-build.rb

- name: Sign API
if: github.event.pull_request.head.repo.fork == false && (github.event_name == 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]')
if: github.ref_name == 'master' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && github.event.pull_request.user.login != 'dependabot[bot]')
env:
JWS_SIGNING_KEY_ID: homebrew-1
JWS_SIGNING_KEY: ${{ secrets.JWS_HOMEBREW_1 }}
Expand Down

0 comments on commit a615178

Please sign in to comment.