Migrate set-env to GITHUB_ENV

This commit is contained in:
Matt Borgerson 2021-03-03 03:56:09 -07:00
parent cb9c6ffbec
commit c29877eb26

View File

@ -13,11 +13,11 @@ jobs:
env: env:
BUILD_TAG: BUILD_TAG:
steps: steps:
- name: Define Build Tag - name: Create Build Tag
shell: python shell: bash
run: | run: |
from datetime import datetime export BUILD_TAG=build-$(date -u +'%Y%m%d%H%M')
print('::set-env name=BUILD_TAG::v' + datetime.now().strftime('%y%m%d%H%M%S')) echo "BUILD_TAG=$BUILD_TAG" >> $GITHUB_ENV
- name: Install MSYS2 & Dependencies - name: Install MSYS2 & Dependencies
run: | run: |
choco install msys2 --no-progress choco install msys2 --no-progress
@ -51,12 +51,12 @@ jobs:
prerelease: false prerelease: false
- name: Upload Release Assets - name: Upload Release Assets
if: github.event_name == 'push' if: github.event_name == 'push'
id: upload-release-asset id: upload-release-asset
uses: actions/upload-release-asset@v1.0.1 uses: actions/upload-release-asset@v1.0.1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: msys64.7z asset_path: msys64.7z
asset_name: msys64.7z asset_name: msys64.7z
asset_content_type: application/zip asset_content_type: application/zip