Skip to content

Commit cdc47ca

Browse files
committed
fix: update GH actions to latest versions
1 parent ed4d4c1 commit cdc47ca

File tree

3 files changed

+37
-35
lines changed

3 files changed

+37
-35
lines changed

.github/workflows/conventional-prs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PR
1+
name: Lint PR
22
on:
33
pull_request_target:
44
types:
@@ -7,12 +7,14 @@ on:
77
- edited
88
- synchronize
99

10+
permissions:
11+
pull-requests: read
12+
1013
jobs:
11-
title-format:
14+
main:
15+
name: Validate PR title
1216
runs-on: ubuntu-latest
1317
steps:
14-
- uses: amannn/action-semantic-pull-request@v3.4.0
18+
- uses: amannn/action-semantic-pull-request@v5
1519
env:
1620
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
with:
18-
validateSingleCommit: true

.github/workflows/main.yml

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ main, dev ]
5+
branches: [main, dev]
66
pull_request:
7-
branches: [ main, dev ]
7+
branches: [main, dev]
88

99
jobs:
1010
Formatting:
1111
runs-on: ubuntu-latest
12+
if: ${{ github.actor != 'github-actions[bot]' }}
1213
steps:
13-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1415
- name: Formatting
1516
uses: github/super-linter@v4
1617
env:
@@ -21,33 +22,35 @@ jobs:
2122

2223
Linting:
2324
runs-on: ubuntu-latest
25+
if: ${{ github.actor != 'github-actions[bot]' }}
2426
steps:
25-
- uses: actions/checkout@v2
26-
- name: Lint workflow
27-
uses: snakemake/snakemake-github-action@v1.24.0
28-
with:
29-
directory: .
30-
snakefile: workflow/Snakefile
31-
args: "--cores 2 --lint"
27+
- uses: actions/checkout@v2
28+
- name: Lint workflow
29+
uses: snakemake/snakemake-github-action@v1.25.1
30+
with:
31+
directory: .
32+
snakefile: workflow/Snakefile
33+
args: "--lint"
3234

3335
Testing:
3436
runs-on: ubuntu-latest
35-
needs:
37+
if: ${{ github.actor != 'github-actions[bot]' }}
38+
needs:
3639
- Linting
3740
- Formatting
3841
steps:
39-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@v4
4043

41-
- name: Test workflow
42-
uses: snakemake/snakemake-github-action@v1.24.0
43-
with:
44-
directory: .test
45-
snakefile: workflow/Snakefile
46-
args: "--use-conda --show-failed-logs --cores 2 --conda-cleanup-pkgs cache --dryrun"
44+
- name: Test workflow
45+
uses: snakemake/snakemake-github-action@v1.25.1
46+
with:
47+
directory: .test
48+
snakefile: workflow/Snakefile
49+
args: "--use-conda --show-failed-logs --cores 3 --conda-cleanup-pkgs cache --dry-run"
4750

48-
- name: Test report
49-
uses: snakemake/snakemake-github-action@v1.24.0
50-
with:
51-
directory: .test
52-
snakefile: workflow/Snakefile
53-
args: "--cores 2 --report report.zip"
51+
- name: Test report
52+
uses: snakemake/snakemake-github-action@v1.25.1
53+
with:
54+
directory: .test
55+
snakefile: workflow/Snakefile
56+
args: "--report report.zip"

.github/workflows/release-please.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@ on:
33
branches:
44
- main
55

6-
permissions:
7-
contents: write
8-
pull-requests: write
9-
106
name: release-please
117

128
jobs:
139
release-please:
1410
runs-on: ubuntu-latest
1511
steps:
16-
- uses: google-github-actions/release-please-action@v3
12+
- uses: GoogleCloudPlatform/release-please-action@v2
13+
id: release
1714
with:
1815
release-type: go # just keep a changelog, no version anywhere outside of git tags
19-
package-name: snakemake-crispr-guides
16+
package-name: <repo>

0 commit comments

Comments
 (0)