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

Commit

Permalink
chore(cd): replace deprecated set-env in CD pipeline
Browse files Browse the repository at this point in the history
set-env deprecated as of Nov 16th
  • Loading branch information
S-Coyle committed Nov 23, 2020
1 parent 7166b74 commit 0db2b64
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/auto_merge_prs.yml
Expand Up @@ -18,7 +18,9 @@ jobs:

- name: get commit message
run: |
echo ::set-env name=commitmsg::$(git log --format=%B -n 1 ${{ github.event.pull_request.head.sha }})
commitmsg=$(git log --format=%s -n 1 ${{ github.event.pull_request.head.sha }})
echo "commitmsg=${commitmsg}" >> $GITHUB_ENV
- name: show commit message
run : echo $commitmsg

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/github_release.yml
@@ -1,5 +1,6 @@
name: Create GitHub Release


on:
push:
tags:
Expand All @@ -19,7 +20,7 @@ jobs:

- name: Set tag as env
shell: bash
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV

- name: lets check tag
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tag_release.yml
Expand Up @@ -20,11 +20,11 @@ jobs:
with:
fetch-depth: '0'
token: ${{ secrets.BRANCH_CREATOR_TOKEN }}
- run: echo ::set-env name=RELEASE_VERSION::$(git log -1 --pretty=%B)
- run: echo "RELEASE_VERSION=$(git log -1 --pretty=%s)" >> $GITHUB_ENV
# parse out non-tag text
- run: echo ::set-env name=RELEASE_VERSION::$( echo $RELEASE_VERSION | sed 's/chore(release)://' )
- run: echo "RELEASE_VERSION=$( echo $RELEASE_VERSION | sed 's/chore(release)://' )" >> $GITHUB_ENV
# remove spaces, but add back in `v` to tag, which is needed for standard-version
- run: echo ::set-env name=RELEASE_VERSION::v$(echo $RELEASE_VERSION | tr -d '[:space:]')
- run: echo "RELEASE_VERSION=v$(echo $RELEASE_VERSION | tr -d '[:space:]')" >> $GITHUB_ENV
- run: echo $RELEASE_VERSION
- run: git tag $RELEASE_VERSION

Expand Down

0 comments on commit 0db2b64

Please sign in to comment.