Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit c427591

Browse files
committed
deps: updated action versions
1 parent 49cf8bf commit c427591

File tree

3 files changed

+54
-19
lines changed

3 files changed

+54
-19
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
46+
uses: github/codeql-action/init@v3
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
57+
uses: github/codeql-action/autobuild@v3
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,5 +68,5 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
71+
uses: github/codeql-action/analyze@v3
7272

.github/workflows/maven.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
17-
java-version: [ 11 ]
17+
java-version: [ 17 ]
1818
browser: ['googlechromeheadless', 'firefoxheadless', 'edgeheadless']
1919
include:
2020
- os: ubuntu-latest
@@ -43,9 +43,9 @@ jobs:
4343
runs-on: ${{ matrix.os }}
4444
name: Test on ${{ matrix.os }} with Java ${{ matrix.java-version }} using browser ${{ matrix.browser }}
4545
steps:
46-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v4
4747
- name: Set up JDK ${{ matrix.java-version }}
48-
uses: actions/setup-java@v2.3.0
48+
uses: actions/setup-java@v4
4949
with:
5050
distribution: zulu
5151
java-version: ${{ matrix.java-version }}
@@ -75,7 +75,7 @@ jobs:
7575
run: echo "${{ env.SHA }}"
7676

7777
- name: Archive acceptances test results
78-
uses: actions/upload-artifact@v2.2.4
78+
uses: actions/upload-artifact@v4
7979
with:
8080
name: at-results-${{ matrix.browser }}-${{ matrix.os }}-${{ matrix.java-version }}
8181
path: target/robotframework-reports
@@ -91,7 +91,7 @@ jobs:
9191
echo "::set-output name=JOB_STATUS::$(python -c "print('${{ job.status }}'.lower())")"
9292
if: always() && job.status == 'failure'
9393

94-
- uses: octokit/request-action@7e93b91076fad3920c29d44eb2a6311d929db3dd
94+
- uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d #v2.4.0
9595
name: Update status with Github Status API
9696
id: update_status_pr
9797
with:
@@ -112,17 +112,20 @@ jobs:
112112
runs-on: ubuntu-latest
113113
name: Release package
114114
steps:
115-
- uses: actions/checkout@v2
115+
- uses: actions/checkout@v4
116116
- name: Set up JDK
117-
uses: actions/setup-java@v2.3.0
117+
uses: actions/setup-java@v4
118118
with:
119119
distribution: zulu
120-
java-version: 11
120+
java-version: 17
121121
- name: Release Maven package
122-
uses: samuelmeuli/action-maven-publish@201a45a3f311b2ee888f252ba9f4194257545709
123-
with:
124-
gpg_private_key: ${{ secrets.gpg_private_key }}
125-
gpg_passphrase: ${{ secrets.gpg_passphrase }}
126-
nexus_username: ${{ secrets.nexus_username }}
127-
nexus_password: ${{ secrets.nexus_password }}
128-
maven_args: -DskipTests -B -ntp
122+
run:
123+
echo $GPG_PRIVATE_KEY > .m2/private-key.txt
124+
gpg --import --batch .m2/private-key.txt
125+
rm .m2/private-key.txt
126+
mvn clean deploy --batch-mode --activate-profiles deploy --settings ${{ github.workspace }}/.m2/settings.xml -DskipTests -B -ntp
127+
env:
128+
GPG_PRIVATE_KEY: ${{ secrets.gpg_private_key }}
129+
GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }}
130+
NEXUS_USERNAME: ${{ secrets.nexus_username }}
131+
NEXUS_PASSWORD: ${{ secrets.nexus_password }}

.m2/settings.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!-- Maven settings for CI -->
3+
<settings
4+
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"
7+
>
8+
<profiles>
9+
<!-- GPG settings -->
10+
<profile>
11+
<id>gpg</id>
12+
<activation>
13+
<activeByDefault>true</activeByDefault>
14+
</activation>
15+
<properties>
16+
<gpg.executable>gpg</gpg.executable>
17+
<!-- Load passphrase from env variable -->
18+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
19+
</properties>
20+
</profile>
21+
</profiles>
22+
23+
<servers>
24+
<!-- Sonatype OSSRH credentials -->
25+
<server>
26+
<id>ossrh</id>
27+
<!-- Load credentials from env variables -->
28+
<username>${env.NEXUS_USERNAME}</username>
29+
<password>${env.NEXUS_PASSWORD}</password>
30+
</server>
31+
</servers>
32+
</settings>

0 commit comments

Comments
 (0)