Skip to content

Commit d4e659b

Browse files
committed
[ci] Github Actions syntax: set-env command was deprecated
1 parent 7d7acbd commit d4e659b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
id: version
1616
run: |
1717
export VERSION_TMP="$(date +'%Y%m%d.%H%M')"
18-
echo "::set-env name=VERSION::$VERSION_TMP"
18+
echo "VERSION=$VERSION_TMP" >> $GITHUB_ENV
1919
echo $VERSION
2020
echo "::set-output name=VERSION::$VERSION_TMP"
2121
- name: Create Release
@@ -38,7 +38,7 @@ jobs:
3838
steps:
3939
- name: Version
4040
run: |
41-
echo "::set-env name=VERSION::${{ needs.init.outputs.version }}"
41+
echo "VERSION=${{ needs.init.outputs.version }}" >> $GITHUB_ENV
4242
echo $VERSION
4343
- name: Setup build environment
4444
run: |
@@ -102,7 +102,7 @@ jobs:
102102
steps:
103103
- name: Version
104104
run: |
105-
echo "::set-env name=VERSION::${{ needs.init.outputs.version }}"
105+
echo "VERSION=${{ needs.init.outputs.version }}" >> $GITHUB_ENV
106106
echo $VERSION
107107
- name: Check out repository
108108
uses: actions/checkout@v2
@@ -123,7 +123,7 @@ jobs:
123123
rpmbuild -ba openocd.spec
124124
ls ~/rpmbuild/RPMS/x86_64/
125125
export RPM_FILE_TMP="$(ls ~/rpmbuild/RPMS/x86_64/)"
126-
echo "::set-env name=RPM_FILE::$RPM_FILE_TMP"
126+
echo "RPM_FILE=$RPM_FILE_TMP" >> $GITHUB_ENV
127127
echo $RPM_FILE
128128
#- name: RPM package artifact
129129
# uses: actions/upload-artifact@v2
@@ -147,7 +147,7 @@ jobs:
147147
steps:
148148
- name: Version
149149
run: |
150-
echo "::set-env name=VERSION::${{ needs.init.outputs.version }}"
150+
echo "VERSION=${{ needs.init.outputs.version }}" >> $GITHUB_ENV
151151
echo $VERSION
152152
- name: Check out repository
153153
uses: actions/checkout@v2

0 commit comments

Comments
 (0)