Skip to content

Commit

Permalink
ci: update workflow dependencies
Browse files Browse the repository at this point in the history
(cherry picked from commit 1709eef)
  • Loading branch information
axieum committed Dec 3, 2023
1 parent 8ae79ca commit c808357
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:

steps:
- name: ✨ Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: ☕ Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:

steps:
- name: 🔖 Label
uses: actions/labeler@v3
uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 5 additions & 7 deletions .github/workflows/release-1.19.4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ jobs:
steps:
- name: 🙌 Prepare release
id: release-please
uses: GoogleCloudPlatform/release-please-action@v3
uses: google-github-actions/release-please-action@v4
with:
command: manifest
config-file: .github/release-please.json
default-branch: mc/1.19.4
target-branch: mc/1.19.4
token: ${{ secrets.GITHUB_TOKEN }}

outputs:
releases_created: ${{ steps.release-please.outputs.releases_created }}
paths_released: ${{ steps.release-please.outputs.paths_released }}
releases: ${{ toJson(steps.release-please.outputs) }}

Expand All @@ -35,7 +33,7 @@ jobs:

runs-on: ubuntu-latest
needs: release
if: ${{ needs.release.outputs.releases_created }}
if: ${{ needs.release.outputs.paths_released != '[]' }}

strategy:
fail-fast: false
Expand All @@ -44,10 +42,10 @@ jobs:

steps:
- name: ✨ Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: ☕ Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
steps:
- name: 🙌 Prepare release
id: release-please
uses: GoogleCloudPlatform/release-please-action@v3
uses: google-github-actions/release-please-action@v4
with:
command: manifest
config-file: .github/release-please.json
token: ${{ secrets.GITHUB_TOKEN }}

outputs:
releases_created: ${{ steps.release-please.outputs.releases_created }}
paths_released: ${{ steps.release-please.outputs.paths_released }}
releases: ${{ toJson(steps.release-please.outputs) }}

Expand All @@ -35,7 +33,7 @@ jobs:

runs-on: ubuntu-latest
needs: release
if: ${{ needs.release.outputs.releases_created }}
if: ${{ needs.release.outputs.paths_released != '[]' }}

strategy:
fail-fast: false
Expand All @@ -44,10 +42,10 @@ jobs:

steps:
- name: ✨ Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: ☕ Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
Expand Down

0 comments on commit c808357

Please sign in to comment.