Last active
May 6, 2024 16:45
-
-
Save abadger/33c474f2b3da1d336a4790921050f9d2 to your computer and use it in GitHub Desktop.
Deriving from an environment var from another github action var
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
BASE_EE_VERSION: ${{ ANSIBLE_CORE_VERSION }}-${{ EE_VERSION }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set derived variables | |
run: | | |
echo "CI_COMMIT_MESSAGE=Release a new version of the Execution Environment: ${{ env.BASE_EE_VERSION }}" >> $GITHUB_ENV | |
- name: Check environment variable is available | |
run: | | |
echo "${{ env.CI_COMMIT_MESSAGE }}" # Should return Release a new version of the Execution Environment: 12.10.2-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment