Skip to content

Commit

Permalink
[temp] automate auth-spa
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Jan 18, 2024
1 parent cade746 commit 3031d18
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/asgardeo-auth-spa-version-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,16 @@ jobs:
existing_version=$(grep -oP 'auth-spa-\K[0-9]+\.[0-9]+\.[0-9]+' apps/console/src/public/auth-spa-3.0.1.min.js)
latest_release=$(curl -s https://api.github.com/repos/asgardeo/asgardeo-auth-spa-sdk/releases/latest | jq -r '.tag_name')
if [ "$existing_version" == "$latest_release" ]; then
echo "Versions match. Aborting further steps."
exit 0
fi
# if [ "$existing_version" == "$latest_release" ]; then
# echo "Versions match. Aborting further steps."
# exit 0
# fi
echo "EXISTING_ASGARDEO_AUTH_VERSION=${existing_version}" >> $GITHUB_ENV
echo "LATEST_ASGARDEO_AUTH_VERSION=${latest_release}" >> $GITHUB_ENV
echo "Existing version: $existing_version"
echo "Latest release: $latest_release"
# - name: 🎉 Create pull request
# id: create-pr
# run: |
Expand Down

0 comments on commit 3031d18

Please sign in to comment.