Skip to content

Commit 2366d92

Browse files
authored
Merge pull request #671 from sturman/update-github-actions
ci: update GitHub actions
2 parents 5f5c2c1 + 4a45529 commit 2366d92

File tree

3 files changed

+21
-27
lines changed

3 files changed

+21
-27
lines changed

.github/workflows/main.yaml

+17-22
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
pre-commit:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/[email protected]
19+
- uses: actions/[email protected]
20+
- uses: actions/setup-python@v5
2021
with:
21-
set-safe-directory: true
22-
- uses: actions/setup-python@v3
22+
python-version: '3.x'
2323
- uses: pre-commit/[email protected]
2424
test:
2525
name: test
@@ -29,10 +29,9 @@ jobs:
2929
- name: Install git
3030
run: apk add --update --no-cache git
3131
- name: Checkout code
32-
uses: actions/checkout@v3.0.2
32+
uses: actions/checkout@v4.2.2
3333
with:
3434
fetch-depth: 0
35-
set-safe-directory: true
3635
- name: Test
3736
run: |
3837
scripts/alpine-setup.sh
@@ -52,10 +51,9 @@ jobs:
5251
- name: Install git
5352
run: apk add --update --no-cache git
5453
- name: Checkout
55-
uses: actions/checkout@v3.0.2
54+
uses: actions/checkout@v4.2.2
5655
with:
5756
fetch-depth: 0
58-
set-safe-directory: true
5957
- name: Build
6058
run: |
6159
git config --global --add safe.directory /__w/kube-no-trouble/kube-no-trouble
@@ -74,14 +72,13 @@ jobs:
7472
runs-on: ubuntu-latest
7573
steps:
7674
- name: Checkout
77-
uses: actions/checkout@v2
75+
uses: actions/checkout@v4.2.2
7876
with:
7977
fetch-depth: 0
80-
set-safe-directory: true
8178
- name: Set up Docker Buildx
82-
uses: docker/setup-buildx-action@v2
79+
uses: docker/setup-buildx-action@v3
8380
- name: Build and push Docker image
84-
uses: docker/build-push-action@v3
81+
uses: docker/build-push-action@v6
8582
with:
8683
context: .
8784
push: false
@@ -115,16 +112,15 @@ jobs:
115112
]
116113
steps:
117114
- name: Checkout
118-
uses: actions/checkout@v3.0.2
115+
uses: actions/checkout@v4.2.2
119116
with:
120117
fetch-depth: 0
121-
set-safe-directory: true
122118
- uses: actions/download-artifact@v4
123119
with:
124120
name: release-artifacts-linux-amd64
125121
path: release-artifacts
126122
- name: Create k8s Kind Cluster
127-
uses: helm/kind-action@v1.10.0
123+
uses: helm/kind-action@v1.12.0
128124
with:
129125
node_image: ${{ matrix.k8s_version }}
130126
cluster_name: kubent-test-cluster
@@ -145,12 +141,11 @@ jobs:
145141
tag_name: ${{ steps.get_tag.outputs.git_tag }}
146142
steps:
147143
- name: Checkout
148-
uses: actions/checkout@v3.0.2
144+
uses: actions/checkout@v4.2.2
149145
with:
150146
fetch-depth: 0
151-
set-safe-directory: true
152147
- name: Generate a changelog
153-
uses: orhun/git-cliff-action@v3
148+
uses: orhun/git-cliff-action@v4
154149
id: git-cliff
155150
with:
156151
config: cliff.toml
@@ -163,7 +158,7 @@ jobs:
163158
path: release-artifacts
164159
- name: Get the tag
165160
id: get_tag
166-
run: echo ::set-output name=git_tag::${GITHUB_REF/refs\/tags\//}
161+
run: echo "git_tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
167162
- name: Create Release
168163
id: create_release
169164
uses: actions/create-release@v1
@@ -186,17 +181,17 @@ jobs:
186181
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
187182
steps:
188183
- name: Checkout repository
189-
uses: actions/checkout@v3
184+
uses: actions/checkout@v4.2.2
190185
- name: Log in to the Container registry
191-
uses: docker/login-action@v2
186+
uses: docker/login-action@v3
192187
with:
193188
registry: ${{ env.REGISTRY }}
194189
username: ${{ github.actor }}
195190
password: ${{ secrets.GITHUB_TOKEN }}
196191
- name: Set up Docker Buildx
197-
uses: docker/setup-buildx-action@v2
192+
uses: docker/setup-buildx-action@v3
198193
- name: Build and push Docker image
199-
uses: docker/build-push-action@v3
194+
uses: docker/build-push-action@v6
200195
with:
201196
context: .
202197
push: true

.github/workflows/nightly.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v3.0.2
11+
uses: actions/checkout@v4.2.2
1212
with:
1313
fetch-depth: 0
14-
set-safe-directory: true
1514
- name: Set tag name
1615
id: git_tag
17-
run: echo "::set-output name=tag::$(git describe --tags --match '[0-9].[0-9].[0-9]')"
16+
run: echo "tag=$(git describe --tags --match '[0-9].[0-9].[0-9]')" >> "$GITHUB_OUTPUT"
1817
- name: check if tag exists
1918
id: tag_exists
2019
run: |
2120
set -x
2221
exists=false
2322
[ "$(git tag -l "${TAG}")" = "${TAG}" ] && exists=true
2423
[ "$(git tag -l "nightly-${TAG}")" = "nightly-${TAG}" ] && exists=true
25-
echo "::set-output name=result::${exists}"
24+
echo "result=${exists}" >> "$GITHUB_OUTPUT"
2625
env:
2726
TAG: ${{ steps.git_tag.outputs.tag }}
2827
- name: Setup SSH Keys and known_hosts

.github/workflows/stale.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v6
10+
- uses: actions/stale@v9
1111
with:
1212
exempt-issue-labels: 'awaiting-approval,work-in-progress,not-stale'
1313
exempt-pr-labels: 'awaiting-approval,work-in-progress,not-stale'

0 commit comments

Comments
 (0)