Skip to content

Commit 44b7c4c

Browse files
Merge pull request #52 from dnanexus/jmares-update_to_24.04_runner
[COMPUTE-1239, APPS-3123] updated runner to 24.04
2 parents 6587634 + 0c10bc6 commit 44b7c4c

File tree

5 files changed

+39
-18
lines changed

5 files changed

+39
-18
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'Install SBT'
2+
description: 'This action installs SBT'
3+
4+
runs:
5+
using: 'composite'
6+
steps:
7+
- name: Install SBT
8+
id: install-sbt
9+
run: |
10+
sudo apt-get update
11+
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
12+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x99E82A75642AC823" | sudo apt-key add
13+
sudo apt-get update
14+
sudo apt-get install -y sbt
15+
shell: bash

.github/workflows/codeql.yml

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

4141
steps:
4242
- name: Checkout repository
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4444

4545
# Initializes the CodeQL tools for scanning.
4646
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@v2
47+
uses: github/codeql-action/init@70df9def86d22bf0ea4e7f8b956e7b92e7c1ea22 # v2.20.7
4848
with:
4949
languages: ${{ matrix.language }}
5050
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -58,7 +58,7 @@ jobs:
5858
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5959
# If this step fails, then you should remove it and run the build manually (see below)
6060
- name: Autobuild
61-
uses: github/codeql-action/autobuild@v2
61+
uses: github/codeql-action/autobuild@70df9def86d22bf0ea4e7f8b956e7b92e7c1ea22 # v2.20.7
6262

6363
# ℹ️ Command-line programs to run using the OS shell.
6464
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -71,6 +71,6 @@ jobs:
7171
# ./location_of_script_within_repo/buildscript.sh
7272

7373
- name: Perform CodeQL Analysis
74-
uses: github/codeql-action/analyze@v2
74+
uses: github/codeql-action/analyze@70df9def86d22bf0ea4e7f8b956e7b92e7c1ea22 # v2.20.7
7575
with:
7676
category: "/language:${{matrix.language}}"

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,18 @@ permissions:
1515
jobs:
1616
test:
1717
name: Test
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1919
steps:
2020
- name: Git Checkout
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
with:
2323
submodules: true
2424
- name: Install Java
25-
uses: actions/setup-java@v1
25+
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
2626
with:
2727
java-version: 11
28+
- name: Install SBT
29+
uses: ./.github/workflows/actions/install-sbt
2830
- name: Build
2931
run: |
3032
# compile antlr4 sources

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ permissions:
1212
jobs:
1313
run-release:
1414
name: cwlScala Release
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Git checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919
with:
2020
submodules: true
2121
- name: Version check
@@ -26,9 +26,11 @@ jobs:
2626
exit 1
2727
fi
2828
- name: Install java
29-
uses: actions/setup-java@v1
29+
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
3030
with:
3131
java-version: 11
32+
- name: Install SBT
33+
uses: ./.github/workflows/actions/install-sbt
3234
- name: Install & build
3335
run: |
3436
# compile antlr4 sources
@@ -60,7 +62,7 @@ jobs:
6062
sed -n '/## ${{ github.event.inputs.release-version }}/,/##/p' RELEASE_NOTES.md | sed '1d; $d' > $RELEASE_NOTES_PATH
6163
echo ::set-output name=release-notes-path::$(echo "${RELEASE_NOTES_PATH}")
6264
- name: Commit changes to application.conf files
63-
uses: EndBug/add-and-commit@v7
65+
uses: EndBug/add-and-commit@8c12ff729a98cfbcd3fe38b49f55eceb98a5ec02 # v7.5.0
6466
with:
6567
message: 'Release ${{ github.event.inputs.release-version }}'
6668
add: '[
@@ -70,7 +72,7 @@ jobs:
7072
tag: ${{ github.event.inputs.release-version }}
7173
- name: Create release entry
7274
id: create-release
73-
uses: actions/create-release@v1
75+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
7476
env:
7577
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7678
with:
@@ -81,7 +83,7 @@ jobs:
8183
prerelease: false
8284
- name: Upload assembly JAR
8385
id: upload-release-assembly
84-
uses: actions/upload-release-asset@v1
86+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
8587
env:
8688
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8789
with:
@@ -105,7 +107,7 @@ jobs:
105107
sbt publish
106108
- name: Rollback release if unsuccessfull
107109
if: ${{ cancelled() || failure() }}
108-
uses: author/action-rollback@stable
110+
uses: author/action-rollback@f4473931b1155b601092ec00eb1fa4882b80219f # 1.0.4
109111
with:
110112
release_id: ${{ steps.create-release.outputs.id }}
111113
tag: ${{ github.event.inputs.release-version }}

.github/workflows/snapshot.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ permissions:
1010
jobs:
1111
publish:
1212
name: Publish Snapshot
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-24.04
1414
steps:
1515
- name: Git Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
with:
1818
submodules: true
1919
- name: Install Java
20-
uses: actions/setup-java@v1
20+
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
2121
with:
2222
java-version: 11
23+
- name: Install SBT
24+
uses: ./.github/workflows/actions/install-sbt
2325
- name: Install other dependencies
2426
run: |
2527
sudo apt update -y && sudo apt install -y jq
@@ -41,7 +43,7 @@ jobs:
4143
version_id=`echo $version_json | jq -r .data.repository.packages.nodes[0].version.id`
4244
echo ::set-output name=version_id::"${version_id}"
4345
- name: Delete existing snapshot
44-
uses: actions/delete-package-versions@v2
46+
uses: actions/delete-package-versions@000223ef3eaa3505c63d4c610f57ef103bcab46d # v2.0.2
4547
if: ${{ steps.versions.outputs.version_id != 'null' }}
4648
with:
4749
repo: dnanexus

0 commit comments

Comments
 (0)