Skip to content

Commit 3a3bebf

Browse files
committed
Harmonize variable names
Signed-off-by: apostasie <[email protected]>
1 parent 2bd1b18 commit 3a3bebf

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/tigron.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ env:
1515
jobs:
1616
lint:
1717
timeout-minutes: 15
18-
name: "${{ matrix.goos }} ${{ matrix.os }} | go ${{ matrix.canary }}"
19-
runs-on: ${{ matrix.os }}
18+
name: "${{ matrix.goos }} ${{ matrix.runner }} | go ${{ matrix.canary }}"
19+
runs-on: ${{ matrix.runner }}
2020
defaults:
2121
run:
2222
shell: bash
2323
strategy:
2424
matrix:
2525
include:
26-
- os: ubuntu-24.04
27-
- os: macos-15
28-
- os: windows-2022
29-
- os: ubuntu-24.04
26+
- runner: ubuntu-24.04
27+
- runner: macos-15
28+
- runner: windows-2022
29+
- runner: ubuntu-24.04
3030
goos: freebsd
31-
- os: ubuntu-24.04
31+
- runner: ubuntu-24.04
3232
canary: go-canary
3333
steps:
3434
- name: "Checkout project"
@@ -58,16 +58,11 @@ jobs:
5858
brew install yamllint shellcheck
5959
fi
6060
echo "::endgroup::"
61-
- if: ${{ env.GO_VERSION != '' }}
61+
- if: ${{ env.GO_VERSION != '' && env.RUNNER_OS == 'Linux' && matrix.goos == '' }}
6262
name: "lint"
6363
env:
6464
NO_COLOR: true
6565
run: |
66-
if [ "$RUNNER_OS" != "Linux" ] || [ "${{ matrix.goos }}" != "" ]; then
67-
echo "It is not necessary to run the linter on this platform (${{ env.RUNNER_OS }} ${{ matrix.goos }})"
68-
exit
69-
fi
70-
7166
echo "::group:: lint"
7267
cd mod/tigron
7368
export LINT_COMMIT_RANGE="$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH})"

0 commit comments

Comments
 (0)