Skip to content

Commit

Permalink
automation - replace deprecated set-env in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Nov 10, 2020
1 parent 531dd18 commit ea6943a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/prepare-release.yml
Expand Up @@ -41,13 +41,13 @@ jobs:
if [[ $MY_POM_VERSION =~ ^.*SNAPSHOT$ ]];
then
. ./CI/prepare-release.sh
echo "::set-env name=PREPARE_RELEASE_OK::yes"
echo "PREPARE_RELEASE_OK=yes" >> $GITHUB_ENV
else
echo "not preparing release for release version: " ${MY_POM_VERSION}
echo "::set-env name=PREPARE_RELEASE_OK::no"
echo "PREPARE_RELEASE_OK=no" >> $GITHUB_ENV
fi
echo "::set-env name=SC_VERSION::$SC_VERSION"
echo "::set-env name=SC_NEXT_VERSION::$SC_NEXT_VERSION"
echo "SC_VERSION=$SC_VERSION" >> $GITHUB_ENV
echo "SC_NEXT_VERSION=$SC_NEXT_VERSION" >> $GITHUB_ENV
- name: Create Prepare Release Pull Request
uses: peter-evans/create-pull-request@v2
if: env.PREPARE_RELEASE_OK == 'yes'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Expand Up @@ -46,14 +46,14 @@ jobs:
if [[ $MY_POM_VERSION =~ ^.*SNAPSHOT$ ]];
then
echo "not releasing snapshot version: " ${MY_POM_VERSION}
echo "::set-env name=RELEASE_OK::no"
echo "RELEASE_OK=no" >> $GITHUB_ENV
else
. ./CI/pre-release.sh
echo "::set-env name=RELEASE_OK::yes"
echo "RELEASE_OK=yes" >> $GITHUB_ENV
fi
echo "::set-env name=SC_VERSION::$SC_VERSION"
echo "::set-env name=SC_NEXT_VERSION::$SC_NEXT_VERSION"
echo "::set-env name=SC_LAST_RELEASE::$SC_LAST_RELEASE"
echo "SC_VERSION=$SC_VERSION" >> $GITHUB_ENV
echo "SC_NEXT_VERSION=$SC_NEXT_VERSION" >> $GITHUB_ENV
echo "SC_LAST_RELEASE=$SC_LAST_RELEASE" >> $GITHUB_ENV
- name: configure git user email
run: |
git config --global user.email "action@github.com"
Expand Down

0 comments on commit ea6943a

Please sign in to comment.