Skip to content

Commit 0fa5507

Browse files
author
Jan Nielsen
committed
update workflows to be "same" as in the base repo
1 parent 8c4c132 commit 0fa5507

File tree

3 files changed

+47
-6
lines changed

3 files changed

+47
-6
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ on:
77
pull_request:
88
branches:
99
- master
10+
permissions:
11+
contents: read
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
1015
jobs:
1116
build:
1217
strategy:
1318
fail-fast: false
14-
runs-on: windows-2022
19+
runs-on: windows-latest
1520
steps:
1621
- name: Checkout
17-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
1823
with:
1924
fetch-depth: 0
2025
- name: Build and Test
@@ -27,7 +32,7 @@ jobs:
2732
run: ./Push.ps1
2833
shell: pwsh
2934
- name: Artifacts
30-
uses: actions/upload-artifact@v2
35+
uses: actions/upload-artifact@v4
3136
with:
3237
name: artifacts
3338
path: artifacts/**/*

.github/workflows/lock.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'Lock threads'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0'
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
lock:
13+
permissions:
14+
issues: write # for dessant/lock-threads to lock issues
15+
pull-requests: write # for dessant/lock-threads to lock PRs
16+
discussions: write # for dessant/lock-threads to lock discussions
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: dessant/lock-threads@v5
20+
with:
21+
issue-inactive-days: 31
22+
pr-inactive-days: 31
23+
discussion-inactive-days: 31
24+
issue-comment: >
25+
This issue has been automatically locked since there
26+
has not been any recent activity after it was closed.
27+
Please open a new issue for related bugs.
28+
pr-comment: >
29+
This pull request has been automatically locked since there
30+
has not been any recent activity after it was closed.
31+
discussion-comment: >
32+
This discussion has been automatically locked since there
33+
has not been any recent activity after it was closed.

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ on:
44
push:
55
tags:
66
- '*.*.*'
7+
permissions:
8+
contents: read
9+
710
jobs:
811
build:
912
strategy:
1013
fail-fast: false
11-
runs-on: windows-2022
14+
runs-on: windows-latest
1215
steps:
1316
- name: Checkout
14-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1518
with:
1619
fetch-depth: 0
1720
- name: Build and Test
@@ -30,7 +33,7 @@ jobs:
3033
run: ./Push.ps1
3134
shell: pwsh
3235
- name: Artifacts
33-
uses: actions/upload-artifact@v2
36+
uses: actions/upload-artifact@v4
3437
with:
3538
name: artifacts
3639
path: artifacts/**/*

0 commit comments

Comments
 (0)