Skip to content

Commit fe5eda3

Browse files
Copilotrenemadsen
andcommitted
Fix GitHub Actions deprecated set-output commands
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent e6e27c7 commit fe5eda3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/dotnet-core-master.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
path: eform-angular-workflow-plugin
1717
- name: Extract branch name
1818
id: extract_branch
19-
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
19+
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
2020
- name: 'Preparing Frontend checkout'
2121
uses: actions/checkout@v3
2222
with:
@@ -36,13 +36,13 @@ jobs:
3636
cd eform-angular-frontend/eform-client && ../../eform-angular-workflow-plugin/testinginstallpn.sh
3737
- name: Get the version release
3838
id: get_release_version
39-
run: echo ::set-output name=VERSION::$(cd eform-angular-workflow-plugin && git describe --abbrev=0 --tags | cut -d "v" -f 2)
39+
run: echo "VERSION=$(cd eform-angular-workflow-plugin && git describe --abbrev=0 --tags | cut -d "v" -f 2)" >> $GITHUB_OUTPUT
4040
- name: Get the version
4141
id: get_version
42-
run: echo ::set-output name=VERSION::$(cd eform-angular-workflow-plugin && git describe --abbrev=0 --tags | cut -d "v" -f 2)
42+
run: echo "VERSION=$(cd eform-angular-workflow-plugin && git describe --abbrev=0 --tags | cut -d "v" -f 2)" >> $GITHUB_OUTPUT
4343
- name: Get the work order version
4444
id: get_frontend_version
45-
run: echo ::set-output name=FRONTENDVERSION::$(cd eform-angular-frontend && git describe --abbrev=0 --tags | cut -d "v" -f 2)
45+
run: echo "FRONTENDVERSION=$(cd eform-angular-frontend && git describe --abbrev=0 --tags | cut -d "v" -f 2)" >> $GITHUB_OUTPUT
4646
- name: Copy Dockerfile
4747
run: cp eform-angular-workflow-plugin/Dockerfile .
4848
- name: Build the tagged Docker image
@@ -61,7 +61,7 @@ jobs:
6161
path: eform-angular-workflow-plugin
6262
- name: Extract branch name
6363
id: extract_branch
64-
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
64+
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
6565
- name: Create docker network
6666
run: docker network create --driver bridge data
6767
- name: Start MariaDB

.github/workflows/dotnet-core-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ jobs:
3333
cd eform-angular-frontend/eform-client && ../../eform-angular-workflow-plugin/testinginstallpn.sh
3434
- name: Get the version release
3535
id: get_release_version
36-
run: echo ::set-output name=VERSION::$(cd eform-angular-workflow-plugin && git describe --abbrev=0 --tags | cut -d "v" -f 2)
36+
run: echo "VERSION=$(cd eform-angular-workflow-plugin && git describe --abbrev=0 --tags | cut -d "v" -f 2)" >> $GITHUB_OUTPUT
3737
- name: Get the version
3838
id: get_version
39-
run: echo ::set-output name=VERSION::$(cd eform-angular-workflow-plugin && git describe --abbrev=0 --tags | cut -d "v" -f 2)
39+
run: echo "VERSION=$(cd eform-angular-workflow-plugin && git describe --abbrev=0 --tags | cut -d "v" -f 2)" >> $GITHUB_OUTPUT
4040
- name: Get the work order version
4141
id: get_frontend_version
42-
run: echo ::set-output name=FRONTENDVERSION::$(cd eform-angular-frontend && git describe --abbrev=0 --tags | cut -d "v" -f 2)
42+
run: echo "FRONTENDVERSION=$(cd eform-angular-frontend && git describe --abbrev=0 --tags | cut -d "v" -f 2)" >> $GITHUB_OUTPUT
4343
- name: Copy Dockerfile
4444
run: cp eform-angular-workflow-plugin/Dockerfile .
4545
- name: Build the tagged Docker image

0 commit comments

Comments
 (0)