Skip to content

Commit

Permalink
ci(post-major-release): replace set-env with set-output
Browse files Browse the repository at this point in the history
  • Loading branch information
gliech committed Nov 14, 2020
1 parent df8d45b commit 0bd1195
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/post-major-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Get version prefix
id: version-prefix
run: |
GIT_REF=${{ github.ref }}
echo "::set-env name=VERSION_PREFIX::${GIT_REF:10:2}"
echo "::set-output name=main::${GIT_REF:10:2}"
- name: Checkout new release
uses: actions/checkout@v2

- name: Create branch for pointer
run: |
git branch $VERSION_PREFIX
git push --set-upstream origin $VERSION_PREFIX
git push --set-upstream origin ${{ steps.version-prefix.outputs.main }}
env:
GIT_AUTHOR_NAME: ${{ github.actor }}
GIT_AUTHOR_EMAIL: ${{ github.actor }}@users.noreply.github.com
Expand Down

0 comments on commit 0bd1195

Please sign in to comment.