Skip to content

Commit e57c314

Browse files
authored
Merge pull request #41 from levigo/bugfix/gh_actions_update
fix(INF-57): update GitHub Actions for Node 20
2 parents 08d6a5c + 979ccfb commit e57c314

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
with:
3535
# We must fetch at least the immediate parents so that if this is
3636
# a pull request then we can check out the head.

.github/workflows/continuous-delivery.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
timeout-minutes: 10
2424

2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727

2828
- name: Bump version and create tag
2929
id: semanticversion
30-
uses: mathieudutour/github-tag-action@v6.1
30+
uses: mathieudutour/github-tag-action@v6.2
3131
with:
3232
release_branches: master
3333
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -44,14 +44,14 @@ jobs:
4444
4545
## Enable Caching
4646
- name: Cache SonarCloud packages
47-
uses: actions/cache@v3
47+
uses: actions/cache@v4
4848
with:
4949
path: ~/.sonar/cache
5050
key: ${{ runner.os }}-sonar
5151
restore-keys: ${{ runner.os }}-sonar
5252

5353
- name: Set up JDK 17
54-
uses: actions/setup-java@v3
54+
uses: actions/setup-java@v4
5555
with:
5656
distribution: 'temurin'
5757
java-version: '17'
@@ -80,12 +80,12 @@ jobs:
8080
## Deploy
8181
- name: Deploy package
8282
env:
83-
GPG_EXECUTABLE: gpg
84-
GPG_SECRET_KEYS: ${{ secrets.LEVIGO_GPG_KEYS }}
85-
GPG_OWNERTRUST: ${{ secrets.LEVIGO_GPG_OWNERTRUST }}
86-
GPG_PASSPHRASE: ${{ secrets.LEVIGO_GPG_PASSPHRASE }}
87-
SONATYPE_USERNAME: ${{ secrets.LEVIGO_SONATYPE_USERNAME }}
88-
SONATYPE_PASSWORD: ${{ secrets.LEVIGO_SONATYPE_PASSWORD }}
83+
GPG_EXECUTABLE: gpg
84+
GPG_SECRET_KEYS: ${{ secrets.LEVIGO_GPG_KEYS }}
85+
GPG_OWNERTRUST: ${{ secrets.LEVIGO_GPG_OWNERTRUST }}
86+
GPG_PASSPHRASE: ${{ secrets.LEVIGO_GPG_PASSPHRASE }}
87+
SONATYPE_USERNAME: ${{ secrets.LEVIGO_SONATYPE_USERNAME }}
88+
SONATYPE_PASSWORD: ${{ secrets.LEVIGO_SONATYPE_PASSWORD }}
8989
run: |
9090
echo "$GPG_SECRET_KEYS" | base64 --decode | $GPG_EXECUTABLE --import --no-tty --batch --yes
9191
echo "$GPG_OWNERTRUST" | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --no-tty --batch --yes
@@ -117,7 +117,7 @@ jobs:
117117
github_token: ${{ secrets.GITHUB_TOKEN }}
118118

119119
- name: Create release
120-
uses: softprops/action-gh-release@v1
120+
uses: softprops/action-gh-release@v2
121121
with:
122122
tag_name: ${{ steps.semanticversion.outputs.new_tag }}
123123
name: ${{ steps.semanticversion.outputs.new_version }}
@@ -134,4 +134,4 @@ jobs:
134134
text: Released new version `${{ steps.semanticversion.outputs.new_version }}` of *${{ github.repository }}* to maven central
135135
env:
136136
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
137-
if: ${{ github.actor != 'dependabot[bot]' }}
137+
if: ${{ failure && github.actor != 'dependabot[bot]' }}

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ jobs:
2323
timeout-minutes: 10
2424

2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727

2828
## Enable Caching
2929
- name: Cache SonarCloud packages
30-
uses: actions/cache@v3
30+
uses: actions/cache@v4
3131
with:
3232
path: ~/.sonar/cache
3333
key: ${{ runner.os }}-sonar
3434
restore-keys: ${{ runner.os }}-sonar
3535

3636
- name: Set up JDK 17
37-
uses: actions/setup-java@v3
37+
uses: actions/setup-java@v4
3838
with:
3939
distribution: 'temurin'
4040
java-version: '17'
@@ -57,4 +57,4 @@ jobs:
5757
text: ${{ github.workflow }} ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
5858
env:
5959
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
60-
if: ${{ github.actor != 'dependabot[bot]' }}
60+
if: ${{ failure() && github.actor != 'dependabot[bot]' }}

0 commit comments

Comments
 (0)