Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaven-stytch committed Sep 24, 2024
1 parent 472bf2b commit 8d13862
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/autopublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,37 @@ on:
workflow_dispatch:

jobs:
setup:
name: Setup environment
check:
name: Check versions and tags
runs-on: ubuntu-latest
outputs:
tag_exists: ${{ steps.tags.outputs.tag_exists }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
check:
name: Configure Publish Job
runs-on: ubuntu-latest
needs: setup
outputs:
tag_exists: ${{ steps.tags.outputs.tag_exists }}
steps:
java-version: 17
- name: Get this commit version
id: version
env:
STYTCH_PUBLIC_TOKEN: 'abc123'
GOOGLE_OAUTH_CLIENT_ID: 'abc123'
STYTCH_B2B_PUBLIC_TOKEN: 'abc123'
STYTCH_B2B_ORG_ID: 'abc123'
PASSKEYS_DOMAIN: 'abc123'
UI_GOOGLE_CLIENT_ID: 'abc123'
run: |
VERSION=$(./gradlew -q printVersion)
echo "Found version $VERSION"
echo "this_version=$VERSION" >> $GITHUB_OUTPUT
- name: Check tag doesn't exist
- name: Check if tag exists
id: tags
run: |
git fetch --tags
git describe --tags --match ${{ steps.version.outputs.this_version }} && TAG_EXISTS="true" || TAG_EXISTS="false"
git describe --tags --match ${{ steps.version.outputs.this_version.value }} && TAG_EXISTS="true" || TAG_EXISTS="false"
echo "tag_exists=$TAG_EXISTS" >> $GITHUB_OUTPUT
echo "Tag exists = $TAG_EXISTS"
publish:
name: Release build and publish
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8d13862

Please sign in to comment.