File tree Expand file tree Collapse file tree 5 files changed +18
-7
lines changed
Expand file tree Collapse file tree 5 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 99
1010jobs :
1111 CLA :
12- runs-on : ubuntu-latest
12+ runs-on : blacksmith-2vcpu- ubuntu-2404
1313 # This job should only run for pull request comments or pull request target events (not issue comments)
1414 if : github.event.issue.pull_request || github.event_name == 'pull_request_target'
1515 steps :
Original file line number Diff line number Diff line change 2121
2222jobs :
2323 publish :
24- runs-on : ubuntu-latest
24+ runs-on : blacksmith-2vcpu- ubuntu-2404
2525 permissions :
2626 contents : read
2727 id-token : write # Required for OIDC: https://docs.npmjs.com/trusted-publishers
Original file line number Diff line number Diff line change 99jobs :
1010 lint :
1111 if : ${{ github.actor != 'OSBotify' || github.event_name == 'workflow_call' }}
12- runs-on : ubuntu-latest
12+ runs-on : blacksmith-2vcpu- ubuntu-2404
1313 steps :
1414 - name : Checkout
1515 # 4.2.2
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ on: pull_request
99
1010jobs :
1111 validateSchemas :
12- runs-on : ubuntu-latest
12+ runs-on : blacksmith-2vcpu- ubuntu-2404
1313 if : ${{ !contains(github.actor, '[bot]') && github.actor != 'MelvinBot' && github.actor != 'botify' && github.actor != 'OSBotify' }}
1414 steps :
1515 - name : Checkout repos
3434 run : echo "::error::The validateWorkflowSchemas check failed! To run it locally, go to the root of ${{ steps.repo.outputs.NAME }} and run <path_to_github_actions_repo>/scripts/validateWorkflowSchemas.sh"
3535
3636 actionlint :
37- runs-on : ubuntu-latest
37+ runs-on : blacksmith-2vcpu- ubuntu-2404
3838 if : ${{ !contains(github.actor, '[bot]') && github.actor != 'MelvinBot' && github.actor != 'botify' && github.actor != 'OSBotify' }}
3939 steps :
4040 - name : Checkout repos
5151 run : echo "::error::The actionlint check failed! To run it locally, go to the root of ${{ steps.repo.outputs.NAME }} and run <path_to_github_actions_repo>/scripts/actionlint.sh"
5252
5353 validateImmutableActionRefs :
54- runs-on : ubuntu-latest
54+ runs-on : blacksmith-2vcpu- ubuntu-2404
5555 if : ${{ !contains(github.actor, '[bot]') && github.actor != 'MelvinBot' && github.actor != 'botify' && github.actor != 'OSBotify' }}
5656 steps :
5757 - name : Checkout repos
Original file line number Diff line number Diff line change 119119info " Linting workflows..."
120120echo
121121cd " $REPO_ROOT " || exit 1
122- if ! " $ACTIONLINT_PATH " -color; then
122+
123+ # If a repo has it's own action lint config, use that. Otherwise, use the one in this repo.
124+ CONFIG=" "
125+ if [[ ! -f " $REPO_ROOT /.github/actionlint.yml" ]] && [[ ! -f " $REPO_ROOT /.github/actionlint.yaml" ]]; then
126+ CONFIG=" -config-file $( readlink -f " $SCRIPT_DIR " /../.github/actionlint.yml) "
127+ info " Using default Github-Actions repo actionlint.yml" >&2
128+ fi
129+
130+ # We can't quote CONFIG here because we need the splitting on spaces for it to be recognized
131+ # by actionlint as a flag
132+ # shellcheck disable=SC2086
133+ if ! " $ACTIONLINT_PATH " ${CONFIG} -color; then
123134 error " Workflows did not pass actionlint :("
124135 exit 1
125136fi
You can’t perform that action at this time.
0 commit comments