Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use fetch-gh-package-latest-snapshot-version #84

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/test-snapshot-liquibase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ jobs:

- name: Fetch latest SNAPSHOT version from GitHub Packages
id: liquibase-core-latest-snapshot-version
run: |
LATEST_VERSION=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/orgs/liquibase/packages/maven/org.liquibase.liquibase-core/versions | \
jq -r '.[0].name')
echo "Latest version is $LATEST_VERSION"
echo "version=$LATEST_VERSION" >> $GITHUB_OUTPUT
uses: momosetkn/fetch-gh-package-latest-snapshot-version@main
with:
org: liquibase
packageType: maven
packageName: org.liquibase.liquibase-core
githubToken: ${{ secrets.GITHUB_TOKEN }}

- name: Configure Gradle for GitHub Packages
run: |
echo "gpr.user=${{ github.actor }}" >> ~/.gradle/gradle.properties
echo "gpr.token=${{ secrets.GITHUB_TOKEN }}" >> ~/.gradle/gradle.properties
echo "gpr.user=${{ github.actor }}" >> gradle.properties
echo "gpr.token=${{ secrets.GITHUB_TOKEN }}" >> gradle.properties

- name: Test with latest liquibase SNAPSHOT version
run: |
Expand Down