Skip to content

Commit e26909c

Browse files
committed
GitHub Actions: template cleanup workflow – update repository topics
1 parent ded0770 commit e26909c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/template-cleanup.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,14 @@ jobs:
4848
mkdir -p src/main/kotlin/${GROUP//.//}
4949
mkdir -p src/test/kotlin/${GROUP//.//}
5050
cp -R .github/template-cleanup/* .
51-
cp -R src/main/kotlin/com/github/hsz/aoc/* src/main/kotlin/${GROUP//.//}/
52-
cp -R src/test/kotlin/com/github/hsz/aoc/* src/test/kotlin/${GROUP//.//}/
51+
mv -R src/main/kotlin/com/github/hsz/aoc/* src/main/kotlin/${GROUP//.//}/
52+
mv -R src/test/kotlin/com/github/hsz/aoc/* src/test/kotlin/${GROUP//.//}/
5353
5454
# Cleanup
5555
rm -rf \
5656
.github/readme \
5757
.github/template-cleanup \
58-
.github/workflows/template-cleanup.yml \
59-
CODE_OF_CONDUCT.md \
60-
LICENSE
58+
.github/workflows/template-cleanup.yml
6159
6260
find . -type d -empty -delete
6361
@@ -75,3 +73,11 @@ jobs:
7573
with:
7674
branch: main
7775
github_token: ${{ secrets.GITHUB_TOKEN }}
76+
77+
# Create new release draft - which is not publicly visible and requires manual acceptance
78+
- name: Update repository topics
79+
env:
80+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
run: |
82+
jq -n '{"names":["aoc-2021-in-kotlin", "kotlin", "advent-of-code", "adventofcode"]}' \
83+
| gh api -X PUT /repos/{owner}/{repo}/topics --input -

0 commit comments

Comments
 (0)