@@ -50,24 +50,23 @@ jobs:
5050 steps :
5151 - uses : actions/checkout@v5
5252
53- # Update repository description
54- - name : Update Repository Description
55- run : |
56- token="${{ secrets.PAT_TOKEN }}"
57- url=https://api.github.com/repos/${{ github.repository }}
58- description='{"description": "Advent of Code ${{ github.event.inputs.aoc_year }}"}'
59- curl -X PATCH -H "Authorization: Bearer $token" -H "Accept: application/vnd.github.v3+json" -d "$description" $url
53+ # Update repository description
54+ - name : Update Repository Description
55+ env :
56+ GH_TOKEN : ${{ secrets.PAT_TOKEN }}
57+ run : gh repo edit -d "Advent of Code ${{ github.event.inputs.aoc_year }}"
6058
61- # Update repository topics
59+ # Update repository topics
6260 - name : Update Repository Topics
61+ env :
62+ GH_TOKEN : ${{ secrets.PAT_TOKEN }}
6363 run : |
64- token="${{ secrets.PAT_TOKEN }}"
65- url="https://api.github.com/repos/${{ github.repository }}/topics"
66- topics='{"names": ["java", "advent-of-code",
67- "advent-of-code-${{ github.event.inputs.aoc_year }}",
68- "advent-of-code-${{ github.event.inputs.aoc_year }}-java",
69- "advent-of-code-flashky"]}'
70- curl -X PUT -H "Authorization: Bearer $token" -H "Accept: application/vnd.github.mercy-preview+json" -d "$topics" $url
64+ gh repo edit \
65+ --add-topic "java" \
66+ --add-topic "advent-of-code" \
67+ --add-topic "advent-of-code-${{ github.event.inputs.aoc_year }}" \
68+ --add-topic "advent-of-code-${{ github.event.inputs.aoc_year }}-java" \
69+ --add-topic "advent-of-code-flashky"
7170
7271 # Clean up folders and README if AoC event is 2025 or newer.
7372 - name : Clean Up (2025+)
0 commit comments