Skip to content

Commit

Permalink
ci: Avoid lint compute-credits on forks
Browse files Browse the repository at this point in the history
Currently `lint` may run on forks and eat up Cirrus CI credits. Fix
this.
It can be trivially enabled by forks, if they want to.
  • Loading branch information
marco committed Aug 15, 2023
1 parent 7e9dab4 commit fa194ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ container:
cpu: 1
memory: 1G
lint_task:
use_compute_credits: true
only_if: $CIRRUS_BASE_BRANCH == 'main'
use_compute_credits: $CIRRUS_REPO_OWNER == 'bitcoin-core' # https://cirrus-ci.org/pricing/#compute-credits
# https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution: Skip needless compute on non-pulls
skip: $CIRRUS_PR == ""
stateful: false # https://cirrus-ci.org/guide/writing-tasks/#stateful-tasks
setup_script: apt-get update && apt-get install -y git libgpgme-dev
merge_base_script:
Expand Down

0 comments on commit fa194ab

Please sign in to comment.