Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automation - replace deprecated set-env in workflows #3733

Merged
merged 1 commit into from Nov 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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