Skip to content

Instantly share code, notes, and snippets.

@abadger
Last active May 6, 2024 16:45
Show Gist options
  • Save abadger/33c474f2b3da1d336a4790921050f9d2 to your computer and use it in GitHub Desktop.
Save abadger/33c474f2b3da1d336a4790921050f9d2 to your computer and use it in GitHub Desktop.
Deriving from an environment var from another github action var
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