Skip to content

Commit

Permalink
auto get repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
fayewong-v5 committed Jan 14, 2021
1 parent 3621e96 commit b5cf1f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
push:
tags:
- 'v*'

env:
ATOMCODE: ${${{ GITHUB_REPOSITORY }}#${{ GITHUB_ACTOR }}/}
branches:
- master

jobs:
deploy:
Expand All @@ -29,7 +28,8 @@ jobs:
python setup.py sdist
release_time=$(date "+%Y%m%d%H%M%S")
release_pkg_name=${{ env.ATOMCODE }}-${release_time}-release.zip
repository=${{ github.repository }}
release_pkg_name=${repository##*/}-${release_time}-release.zip
echo "::set-output name=release_pkg_name::$release_pkg_name"
cp task.json dist/
Expand Down

0 comments on commit b5cf1f8

Please sign in to comment.