Skip to content

Commit 9eaf44d

Browse files
committed
GitHub Actions: update Template Cleanup workflow
1 parent 94fb314 commit 9eaf44d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/template-cleanup.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,22 @@
55
name: Template Cleanup
66
on:
77
push:
8-
branches:
9-
- main
8+
branches: [main]
109

1110
jobs:
1211

13-
# Run cleaning process only if workflow is triggered by the .../advent-of-code-kotlin-template repository.
12+
# Run cleaning process only if workflow is triggered by the non-"advent-of-code-kotlin-template" repository.
1413
template-cleanup:
1514
name: Template Cleanup
1615
runs-on: ubuntu-latest
1716
if: github.event.repository.name != 'advent-of-code-kotlin-template'
17+
permissions:
18+
contents: write
1819
steps:
1920

2021
# Check out current repository
2122
- name: Fetch Sources
22-
uses: actions/checkout@v2.4.0
23+
uses: actions/checkout@v3
2324

2425
# Cleanup project
2526
- name: Cleanup

0 commit comments

Comments
 (0)