Per the documentation found here, I have tried setting a GitHub Action environment variable but noticed that the env variables don't seem to save. Has this been deprecated or is the documentation / my implementation just incorrect?
- name: Get Gradle VersionName
working-directory : ${{ github.workspace }}/app
run : |
echo "Get Gradle VersionName"
echo "action_state=yellow" >> $GITHUB_ENV
echo "${{ env.action_state }}"
grep 'versionName' build.gradle | awk '{print $2}'

