Skip to content

Commit 3c4fe91

Browse files
authored
Merge pull request #56 from toobuntu/actions/actionlint-sync-231230
2 parents 9048ceb + f51a4be commit 3c4fe91

File tree

2 files changed

+26
-30
lines changed

2 files changed

+26
-30
lines changed

.github/actionlint.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/workflows/actionlint.yml

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,56 @@
1+
# This file is synced from the `Homebrew/.github` repository, and
2+
# modified for this `PikachuEXE/homebrew-FreeTube` repository.
3+
14
name: actionlint
5+
26
on:
37
push:
48
branches:
59
- master
610
paths:
711
- '.github/workflows/*.ya?ml'
8-
- '.github/actionlint.yaml'
912
pull_request:
1013
paths:
1114
- '.github/workflows/*.ya?ml'
12-
- '.github/actionlint.yaml'
15+
16+
defaults:
17+
run:
18+
shell: bash -xeuo pipefail {0}
19+
1320
concurrency:
1421
group: "actionlint-${{ github.ref }}"
1522
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
23+
1624
env:
1725
HOMEBREW_DEVELOPER: 1
1826
HOMEBREW_NO_AUTO_UPDATE: 1
1927
HOMEBREW_NO_ENV_HINTS: 1
28+
29+
permissions: {}
30+
2031
jobs:
2132
workflow_syntax:
2233
if: github.repository_owner == 'PikachuEXE'
2334
runs-on: ubuntu-latest
24-
container:
25-
# https://github.com/Homebrew/brew/pkgs/container/ubuntu24.04
26-
image: ghcr.io/homebrew/ubuntu24.04:latest
35+
permissions:
36+
contents: read
2737
steps:
2838
- name: Set up Homebrew
2939
id: setup-homebrew
3040
uses: Homebrew/actions/setup-homebrew@master
3141
with:
32-
core: true
42+
core: false
3343
cask: false
3444
test-bot: false
45+
46+
- name: Install tools
47+
run: brew install actionlint shellcheck
48+
49+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
with:
51+
persist-credentials: false
52+
3553
- name: Set up actionlint
36-
shell: bash
37-
env:
38-
HOMEBREW_TAP_REPOSITORY: ${{ steps.setup-homebrew.outputs.repository-path }}
39-
run: |
40-
brew install actionlint shellcheck
41-
42-
# Annotations work only relative to GITHUB_WORKSPACE
43-
(shopt -s dotglob; rm -rf "${GITHUB_WORKSPACE:?}"/*; mv "${HOMEBREW_TAP_REPOSITORY:?}"/* "$GITHUB_WORKSPACE")
44-
rmdir "$HOMEBREW_TAP_REPOSITORY"
45-
ln -vs "$GITHUB_WORKSPACE" "$HOMEBREW_TAP_REPOSITORY"
46-
47-
# Setting `shell: /bin/bash` prevents shellcheck from running on
48-
# those steps, so let's change them to `shell: bash` for linting.
49-
sed -i 's:/bin/bash -e {0}:bash:' .github/workflows/*.y*ml
50-
# The JSON matcher needs to be accessible to the container host.
51-
cp "$(brew --repository)/.github/actionlint-matcher.json" "$HOME"
52-
echo "::add-matcher::$HOME/actionlint-matcher.json"
54+
run: echo "::add-matcher::$(brew --repository)/.github/actionlint-matcher.json"
55+
5356
- run: actionlint

0 commit comments

Comments
 (0)