Skip to content

Commit e8ff1db

Browse files
authored
Use GITHUB_OUTPUT instead of deprecated set-ouptut command (#389)
1 parent ea087e6 commit e8ff1db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/agent.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ jobs:
136136
id: get_version
137137
run: |
138138
git fetch --tags --force
139-
echo ::set-output name=VERSION::$(git describe --abbrev=0 --tags | tr -d '^v')
139+
echo "VERSION=$(git describe --abbrev=0 --tags | tr -d '^v')" >> $GITHUB_OUTPUT
140140
- name: Get current workspace path
141141
id: get_workspace
142-
run: echo ::set-output name=WORKSPACE::${GITHUB_WORKSPACE}
142+
run: echo "WORKSPACE=${GITHUB_WORKSPACE}" >> $GITHUB_OUTPUT
143143
- name: set the env
144144
run: |
145145
echo "APP_VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV
@@ -173,10 +173,10 @@ jobs:
173173
ref: 'master'
174174
- name: Get the version
175175
id: get_version
176-
run: echo ::set-output name=VERSION::${GITHUB_REF_NAME}
176+
run: echo "VERSION=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
177177
- name: Get current workspace path
178178
id: get_workspace
179-
run: echo ::set-output name=WORKSPACE::${GITHUB_WORKSPACE}
179+
run: echo "WORKSPACE=${GITHUB_WORKSPACE}" >> $GITHUB_OUTPUT
180180
- name: set the env
181181
run: |
182182
TAG=${{ steps.get_version.outputs.VERSION }}
@@ -244,7 +244,7 @@ jobs:
244244
ref: 'master'
245245
- name: Get the version
246246
id: get_version
247-
run: echo ::set-output name=VERSION::${GITHUB_REF_NAME}
247+
run: echo "VERSION=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
248248
- name: set the env
249249
run: |
250250
TAG=${{ steps.get_version.outputs.VERSION }}

0 commit comments

Comments
 (0)