Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Commit

Permalink
Undo GitHub env file re-export in favor of getenv
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgerace committed Aug 16, 2021
1 parent 12e613d commit c38811c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tag.yml
Expand Up @@ -2,8 +2,6 @@ on:
push:
tags: ['*']
name: tag
env:
TO_APPEND: $GITHUB_ENV
jobs:
publish:
runs-on: ${{ matrix.os }}
Expand All @@ -29,7 +27,9 @@ jobs:
- run: cargo build --release --locked
- shell: python
run: |
import os
import platform
newline = "\n"
if platform.system().lower() == "windows":
newline = "\r\n"
Expand All @@ -42,7 +42,7 @@ jobs:
version = "VERSION=" + "${{ github.ref }}".replace("refs/tags/", "")
print(version)
with open('${{ env.TO_APPEND }}', 'a') as f:
with open('os.getenv("GITHUB_ENV")', 'a') as f:
f.write(prerelease + newline)
f.write(version + newline)
- uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit c38811c

Please sign in to comment.