Skip to content

Commit b9cf503

Browse files
committed
ci: Update action versions in nightly build workflow
Versions are updated for various actions that have a new version which uses NodeJS 16. One action has no updated version available yet: `e1himself/goss-installation-action` But an issue exists mentioning that it needs an update.
1 parent 41d550d commit b9cf503

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/nightly-build.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131

3232
- name: Cache marker for latest commit
33-
uses: actions/cache@v2
33+
uses: actions/cache@v3
3434
id: cache-sha
3535
with:
3636
key: sha-${{ github.sha }}
@@ -68,14 +68,15 @@ jobs:
6868
steps:
6969

7070
- name: Checkout Gitblit
71-
uses: actions/checkout@v1
71+
uses: actions/checkout@v3
7272
with:
7373
submodules: true
7474

7575
- name: Setup Java 8
76-
uses: actions/setup-java@v1
76+
uses: actions/setup-java@v3
7777
with:
7878
java-version: 8
79+
distribution: 'temurin'
7980

8081
- name: Report Java version
8182
run: |
@@ -87,7 +88,7 @@ jobs:
8788

8889
- name: Save built Gitblit package
8990
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }}
90-
uses: actions/upload-artifact@v2
91+
uses: actions/upload-artifact@v3
9192
with:
9293
name: gitblit-nightly
9394
path: build/target/gitblit-*-SNAPSHOT.tar.gz
@@ -131,21 +132,21 @@ jobs:
131132

132133
steps:
133134
- name: Checkout gitblit-docker
134-
uses: actions/checkout@v1
135+
uses: actions/checkout@v3
135136
with:
136137
repository: ${{ env.GH_ORG }}/gitblit-docker
137138
ref: master
138139
fetch-depth: 2
139140

140141
- name: Download Gitblit nightly build
141-
uses: actions/download-artifact@v2
142+
uses: actions/download-artifact@v3
142143
id: get-gb
143144
with:
144145
name: gitblit-nightly
145146
path: ../gitblit-docker
146147

147148
# Delete the artifact unless this is the official Gitblit repo
148-
- uses: geekyeggo/delete-artifact@v1
149+
- uses: geekyeggo/delete-artifact@v2
149150
if: ${{ github.repository != 'gitblit/gitblit' }}
150151
with:
151152
name: gitblit-nightly
@@ -171,13 +172,13 @@ jobs:
171172
echo "BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%S)" >> "${GITHUB_ENV}"
172173
173174
- name: Login to Docker Hub
174-
uses: docker/login-action@v1
175+
uses: docker/login-action@v2
175176
with:
176177
username: ${{ secrets.DOCKERHUB_GB_USER }}
177178
password: ${{ secrets.DOCKERHUB_GB_TOKEN }}
178179

179180
- name: Build snapshot docker image
180-
uses: docker/build-push-action@v2
181+
uses: docker/build-push-action@v3
181182
with:
182183
file: ../gitblit-docker/generate/Dockerfile
183184
context: ../gitblit-docker
@@ -226,7 +227,7 @@ jobs:
226227
dgoss run -p 8080:8080 -p 8443:8443 --tmpfs /var/opt/gitblit/temp gitblit/gitblit:nightly
227228
228229
- name: Push docker image to registry
229-
uses: docker/build-push-action@v2
230+
uses: docker/build-push-action@v3
230231
with:
231232
file: ../gitblit-docker/generate/Dockerfile
232233
context: ../gitblit-docker

0 commit comments

Comments
 (0)