Skip to content

Commit 725b25d

Browse files
authored
Merge pull request #79 from atlassian/HEIMDALL-12330-update-github-action-configuration-for-jec-and-oec-script-repositories
Upgrade actions/upload-artifact to v4
2 parents 0283a48 + e10f327 commit 725b25d

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

.github/workflows/release-graylog-plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout project sources
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
- name: Set up JDK 8
1616
uses: actions/setup-java@v2
1717
with:

.github/workflows/release-with-jec.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
integration_version: ${{ steps.gather_params.outputs.INTEGRATION_VERSION }}
6161
steps:
6262
- name: Check out code into the Go module directory
63-
uses: actions/checkout@v2
63+
uses: actions/checkout@v4
6464
- name: Retrieve Integration Version
6565
id: gather_params
6666
run: |
@@ -93,7 +93,7 @@ jobs:
9393
go-version: 1.15.7
9494
id: go
9595
- name: Check out code into the Go module directory
96-
uses: actions/checkout@v2
96+
uses: actions/checkout@v4
9797
- name: Create Output Directory
9898
run: mkdir -p .release/jec-linux/${{ env.INTEGRATION_FOLDER }}
9999
- name: Download Asset
@@ -128,7 +128,7 @@ jobs:
128128
cd .release/jec-linux/
129129
zip -r jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}-linux-amd64.zip ./${{ env.INTEGRATION_FOLDER }}
130130
- name: Upload Artifact
131-
uses: actions/upload-artifact@v3
131+
uses: actions/upload-artifact@v4
132132
with:
133133
name: Linux Artifact
134134
path: .release/jec-linux/*.zip
@@ -156,7 +156,7 @@ jobs:
156156
go-version: 1.15.7
157157
id: go
158158
- name: Check out code into the Go module directory
159-
uses: actions/checkout@v2
159+
uses: actions/checkout@v4
160160
- name: Create Output Directory
161161
run: mkdir -p .release/jec-rpm
162162
- name: Download Asset
@@ -206,12 +206,12 @@ jobs:
206206
- name: Move RHEL6 Package
207207
run: mv ~/rpmbuild/RPMS/x86_64/jsm-${{ env.INTEGRATION_NAME }}-rhel6-${{ env.INTEGRATION_VERSION }}-1.x86_64.rpm .release/jec-rpm/jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}.rhel6.x86_64.rpm
208208
- name: Upload RPM Artifact
209-
uses: actions/upload-artifact@v3
209+
uses: actions/upload-artifact@v4
210210
with:
211211
name: RPM Artifact
212212
path: .release/jec-rpm/jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}.x86_64.rpm
213213
- name: Upload RHEL6 Artifact
214-
uses: actions/upload-artifact@v3
214+
uses: actions/upload-artifact@v4
215215
with:
216216
name: RHEL6 Artifact
217217
path: .release/jec-rpm/jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}.rhel6.x86_64.rpm
@@ -248,7 +248,7 @@ jobs:
248248
go-version: 1.15.7
249249
id: go
250250
- name: Check out code into the Go module directory
251-
uses: actions/checkout@v2
251+
uses: actions/checkout@v4
252252
- name: Create Output Directory
253253
run: mkdir -p .release/jec-deb/usr/local/bin
254254
- name: Download Asset
@@ -295,7 +295,7 @@ jobs:
295295
- name: Move Deb Package
296296
run: mv .release/deb-package/*.deb .release/jec-deb/jsm-${{ env.INTEGRATION_NAME }}_${{ env.INTEGRATION_VERSION }}_amd64.deb
297297
- name: Upload Artifact
298-
uses: actions/upload-artifact@v3
298+
uses: actions/upload-artifact@v4
299299
with:
300300
name: Debian Artifact
301301
path: .release/jec-deb/jsm-${{ env.INTEGRATION_NAME }}_${{ env.INTEGRATION_VERSION }}_amd64.deb
@@ -324,7 +324,7 @@ jobs:
324324
go-version: 1.15.7
325325
id: go
326326
- name: Check out code into the Go module directory
327-
uses: actions/checkout@v2
327+
uses: actions/checkout@v4
328328
- name: Create Output Directory
329329
run: mkdir -p .release/jec-win32/${{ env.INTEGRATION_FOLDER }}
330330
- name: Download Asset
@@ -361,7 +361,7 @@ jobs:
361361
cd .release/jec-win32/
362362
zip -r ${{ env.INTEGRATION_FOLDER }}.zip ./${{ env.INTEGRATION_FOLDER }}
363363
- name: Upload Artifact
364-
uses: actions/upload-artifact@v3
364+
uses: actions/upload-artifact@v4
365365
with:
366366
name: Win32 Artifact
367367
path: .release/jec-win32/*.zip
@@ -390,7 +390,7 @@ jobs:
390390
go-version: 1.15.7
391391
id: go
392392
- name: Check out code into the Go module directory
393-
uses: actions/checkout@v2
393+
uses: actions/checkout@v4
394394
- name: Create Output Directory
395395
run: mkdir -p .release/jec-win64/${{ env.INTEGRATION_FOLDER }}
396396
- name: Download Asset
@@ -427,7 +427,7 @@ jobs:
427427
cd .release/jec-win64/
428428
zip -r ${{ env.INTEGRATION_FOLDER }}.zip ./${{ env.INTEGRATION_FOLDER }}
429429
- name: Upload Artifact
430-
uses: actions/upload-artifact@v3
430+
uses: actions/upload-artifact@v4
431431
with:
432432
name: Win64 Artifact
433433
path: .release/jec-win64/*.zip

.github/workflows/release-without-jec.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
integration_version: ${{ steps.gather_params.outputs.INTEGRATION_VERSION }}
3838
steps:
3939
- name: Check out code into the Go module directory
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v4
4141
- name: Retrieve Integration Version
4242
id: gather_params
4343
run: |
@@ -64,7 +64,7 @@ jobs:
6464
if: github.ref == 'refs/heads/master'
6565
steps:
6666
- name: Checkout project sources
67-
uses: actions/checkout@v2
67+
uses: actions/checkout@v4
6868
- name: Set up JDK 8
6969
uses: actions/setup-java@v2
7070
with:
@@ -92,7 +92,7 @@ jobs:
9292
cd ./go-build/${{ env.INTEGRATION_NAME }}/scripts && \
9393
GOOS=windows GOARCH=386 go build -o send2jsm.exe send2jsm.go
9494
- name: Upload Go Build Files
95-
uses: actions/upload-artifact@v3
95+
uses: actions/upload-artifact@v4
9696
with:
9797
name: Build Go Artifact
9898
path: ./go-build/${{ env.INTEGRATION_NAME }}/*
@@ -106,13 +106,13 @@ jobs:
106106
run:
107107
./gradlew ${{ env.INTEGRATION_NAME }}
108108
- name: Upload Build Files
109-
uses: actions/upload-artifact@v3
109+
uses: actions/upload-artifact@v4
110110
with:
111111
name: Build Files Artifact
112112
path: build/*
113113
- name: Upload Red Hat 6 Based Artifact
114114
if: ${{env.INTEGRATION_NAME != 'vcenter'}}
115-
uses: actions/upload-artifact@v3
115+
uses: actions/upload-artifact@v4
116116
with:
117117
name: RHEL6 Artifact
118118
path: build/distributions/jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}-1.all.noarch.rpm
@@ -128,7 +128,7 @@ jobs:
128128
asset_content_type: application/octet-stream
129129
- name: Upload Debian Based Artifact
130130
if: ${{env.INTEGRATION_NAME != 'vcsa' && env.INTEGRATION_NAME != 'vcenter'}}
131-
uses: actions/upload-artifact@v3
131+
uses: actions/upload-artifact@v4
132132
with:
133133
name: Debian Artifact
134134
path: build/distributions/jsm-${{ env.INTEGRATION_NAME }}_${{ env.INTEGRATION_VERSION }}_all.deb
@@ -144,7 +144,7 @@ jobs:
144144
asset_content_type: application/octet-stream
145145
- name: Upload Win64 Based Artifact
146146
if: ${{env.INTEGRATION_NAME == 'vcenter'}}
147-
uses: actions/upload-artifact@v3
147+
uses: actions/upload-artifact@v4
148148
with:
149149
name: Win64 Artifact
150150
path: build/distributions/jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}.zip

0 commit comments

Comments
 (0)