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

chore: update workflow definitions to use commit based versions for third-party steps #157

Merged
merged 9 commits into from
Jul 10, 2023
Merged
Prev Previous commit
Next Next commit
pin gradle/gradle-build-action
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
  • Loading branch information
jeromy-cannon committed Jul 10, 2023
commit 671c6e0c68b211b2ef018d92c4d22456b8c8f150
2 changes: 1 addition & 1 deletion .github/workflows/flow-deploy-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jobs:
java-version: ${{ inputs.java-version }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # pin@v2
with:
gradle-version: wrapper
gradle-home-cache-includes: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/zxc-release-maven-central.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
java-version: ${{ inputs.java-version }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # pin@v2
with:
gradle-version: ${{ inputs.gradle-version }}
gradle-home-cache-includes: |
Expand All @@ -124,35 +124,35 @@ jobs:
dependency-check-data

- name: Apply Version Number Update (Explicit)
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # pin@v2
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: versionAsSpecified --scan -PnewVersion=${{ inputs.new-version }}

- name: Version Report
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # pin@v2
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: githubVersionSummary --scan

- name: Gradle Assemble
id: gradle-build
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # pin@v2
if: ${{ inputs.dry-run-enabled != true && !cancelled() && !failure() }}
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: assemble --scan

- name: Gradle JavaDoc
id: gradle-javadoc
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # pin@v2
if: ${{ steps.gradle-build.conclusion == 'success' && !cancelled() && !failure() }}
with:
gradle-version: ${{ inputs.gradle-version }}
arguments: javadoc --scan

- name: Gradle Deploy
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # pin@v2
if: ${{ inputs.dry-run-enabled != true && !cancelled() && !failure() }}
env:
OSSRH_USERNAME: ${{ secrets.ossrh-user-name }}
Expand Down