Skip to content

Commit

Permalink
Merge pull request #100 from FusionAuth/use-output-not-env
Browse files Browse the repository at this point in the history
need to use output instead of env to pass values between jobs
  • Loading branch information
johnjeffers committed Nov 9, 2023
2 parents 16ee519 + 637064f commit 3d1fefe
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
git config --global --add safe.directory /__w/charts/charts
- name: Release
id: release
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_OWNER: fusionauth
Expand All @@ -40,7 +41,7 @@ jobs:
cr upload
cr index --push
ARCHIVE=$(ls ${CR_PACKAGE_PATH})
echo "RELEASED_VERSION=${ARCHIVE%.*}" >> $GITHUB_ENV
echo "version=${ARCHIVE%.*}" >> "$GITHUB_OUTPUT"
install:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -69,11 +70,11 @@ jobs:
RELEASED_VERSION: ${{ needs.release.outputs.version }}
run: |
INSTALLED_VERSION=$(helm list -m1 -f 'fusionauth*' -o json | jq -r '.[0].chart' )
if [[ "${{ env.RELEASED_VERSION }}" != "${INSTALLED_VERSION}" ]]; then
if [[ "${RELEASED_VERSION}" != "${INSTALLED_VERSION}" ]]; then
echo "Incorrect Version Installed ..."
echo "Released Version: ${{ env.RELEASED_VERSION }}"
echo "Installed Version: $INSTALLED_VERSION"
echo "Released Version: ${RELEASED_VERSION}"
echo "Installed Version: ${INSTALLED_VERSION}"
exit 1
else
echo "Installed $INSTALLED_VERSION as expected."
echo "Installed ${INSTALLED_VERSION} as expected."
fi

0 comments on commit 3d1fefe

Please sign in to comment.