Skip to content

Commit cb678f2

Browse files
committed
Update github actions and fix envvar deprecation
1 parent 60c97cd commit cb678f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
- name: Extract tag/branch variables
99
shell: bash
1010
run: |
11-
echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/}|grep -v '/')"
12-
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/}|grep -v '/')"
11+
echo "tag=$(echo ${GITHUB_REF#refs/tags/}|grep -v '/')" >> $GITHUB_OUTPUT
12+
echo "branch=$(echo ${GITHUB_REF#refs/heads/}|grep -v '/')" >> $GITHUB_OUTPUT
1313
id: extract
1414
outputs:
1515
tag: ${{ steps.extract.outputs.tag }}
@@ -20,7 +20,7 @@ jobs:
2020
name: Build packages
2121
needs: prep
2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
- name: Set up build tools
2525
run: ./.github/workflows/setup.sh
2626
- name: Run build
@@ -39,7 +39,7 @@ jobs:
3939
sha512sum -b $i > ../checksums/$i.sha
4040
done
4141
- name: Upload build artifacts
42-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@v4
4343
with:
4444
name: build-artifacts
4545
path: |
@@ -53,7 +53,7 @@ jobs:
5353
if: ${{ needs.prep.outputs.tag == '' }}
5454
steps:
5555
- name: Download artifacts
56-
uses: actions/download-artifact@v2
56+
uses: actions/download-artifact@v4.1.7
5757
with:
5858
name: build-artifacts
5959
- name: List artifacts
@@ -66,7 +66,7 @@ jobs:
6666
if: ${{ needs.prep.outputs.tag != '' }}
6767
steps:
6868
- name: Download artifacts
69-
uses: actions/download-artifact@v2
69+
uses: actions/download-artifact@v4.1.7
7070
with:
7171
name: build-artifacts
7272
- name: Create Release

0 commit comments

Comments
 (0)