Skip to content

Commit 279522f

Browse files
authored
refactor: updated GH Actions commands (#548)
* refactor: updated GH Actions commands #547 * refactor: updated those as well * refactor: adapted two further vars * Update action.yml
1 parent 594e681 commit 279522f

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/actions/download-tar-artifact/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
export slashes=$(grep -o "/" <<<"$path" | wc -l)
2929
export amount=$((amount + slashes))
3030
fi
31-
echo "##[set-output name=amount;]$(echo ${amount})"
31+
echo "amount=${amount}" >> $GITHUB_OUTPUT
3232
shell: bash
3333
id: manage-path-folder
3434

.github/actions/extract-branch/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
).replace("refs/heads/","");
2121
- name: 🪑 Set output
2222
id: branch-name
23-
run: echo "::set-output name=branch-name::$(echo $BRANCH_NAME)"
23+
run: echo "branch-name=$BRANCH_NAME" >> $GITHUB_OUTPUT
2424
shell: bash
2525
env:
2626
BRANCH_NAME: ${{steps.get-branch-name.outputs.result}}

.github/workflows/01-get-publish-version.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
OUTPUT=$(./.github/scripts/get-release.sh)
3838
if [[ $OUTPUT == "RELEASE" ]];
3939
then
40-
echo "::set-output name=release::true"
40+
echo "release=true" >> $GITHUB_OUTPUT
4141
elif [[ $OUTPUT == "PRE_RELEASE" ]];
4242
then
43-
echo "::set-output name=preRelease::true"
43+
echo "preRelease=true" >> $GITHUB_OUTPUT
4444
fi
4545
env:
4646
GITHUB_REF: ${{ github.ref }}
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: ↔ Extract tag name
5252
shell: bash
53-
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})"
53+
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
5454
id: extractTag
5555

5656
- name: 🏷 Get and Set Package Version on Env
@@ -62,7 +62,7 @@ jobs:
6262
run: |
6363
chmod +rx ./.github/scripts/package-version.sh
6464
OUTPUT=$(./.github/scripts/package-version.sh)
65-
echo "::set-output name=version::$OUTPUT"
65+
echo "version=$OUTPUT" >> $GITHUB_OUTPUT
6666
6767
- name: 🌳 Log Valid Version
6868
env:

.github/workflows/02-deploy-gh-pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ jobs:
4545
run: |
4646
if [[ $RELEASE == "true" || $PRE_RELEASE == "true" ]]
4747
then
48-
echo "##[set-output name=name;]$(echo ${GITHUB_REF#refs/tags/})"
48+
echo "name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
49+
4950
else
50-
echo "##[set-output name=name;]$(echo $BRANCH_NAME)"
51+
echo "name=$BRANCH_NAME" >> $GITHUB_OUTPUT
5152
fi
5253
id: extract
5354

0 commit comments

Comments
 (0)