Skip to content

Commit a6faa25

Browse files
authored
fix: Update GitHub Actions to use OCTOCAT_TOKEN
1 parent 236ae45 commit a6faa25

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/daily-check.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Initialize if first run
4242
env:
43-
OCTOCAT_TOKEN: ${{ secrets.GITHUB_PAT }} # <-- Changed here
43+
OCTOCAT_TOKEN: ${{ secrets.OCTOCAT_TOKEN }}
4444
run: |
4545
if [ ! -f ~/.gitfollow/snapshots.json ]; then
4646
echo "First run - initializing..."
@@ -50,14 +50,13 @@ jobs:
5050
- name: Check for changes
5151
id: check
5252
env:
53-
OCTOCAT_TOKEN: ${{ secrets.GITHUB_PAT }} # <-- Changed here
53+
OCTOCAT_TOKEN: ${{ secrets.OCTOCAT_TOKEN }}
5454
run: |
5555
OUTPUT=$(gitfollow check --json 2>&1)
5656
echo "$OUTPUT"
5757
echo "output<<EOF" >> $GITHUB_OUTPUT
5858
echo "$OUTPUT" >> $GITHUB_OUTPUT
5959
echo "EOF" >> $GITHUB_OUTPUT
60-
# Check if there are changes
6160
if echo "$OUTPUT" | jq -e '.has_changes == true' > /dev/null 2>&1; then
6261
echo "has_changes=true" >> $GITHUB_OUTPUT
6362
else
@@ -75,7 +74,7 @@ jobs:
7574
- name: Generate and upload report
7675
if: always()
7776
env:
78-
OCTOCAT_TOKEN: ${{ secrets.GITHUB_PAT }} # <-- Changed here
77+
OCTOCAT_TOKEN: ${{ secrets.OCTOCAT_TOKEN }}
7978
run: |
8079
gitfollow report --format=markdown --output=follower-report.md
8180

0 commit comments

Comments
 (0)