Skip to content

Commit 435bc4c

Browse files
debugging 403 error
1 parent a38fc63 commit 435bc4c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/generate-subdirectory-list.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
steps:
1212
- name: Checkout repo
1313
uses: actions/checkout@v3
14+
with:
15+
persist-credentials: true
16+
ref: main # Make sure to track the actual branch
1417

1518
- name: Generate subdirectories.json
1619
run: |
@@ -29,4 +32,4 @@ jobs:
2932
git config user.email "github-actions[bot]@users.noreply.github.com"
3033
git add subdirectories.json
3134
git commit -m "Update subdirectories list" || echo "No changes"
32-
git push
35+
git push origin main # Explicitly push to the main branch

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
fetch('directories.json')
1+
fetch('subdirectories.json')
22
.then(response => response.json())
33
.then(directories => {
44
const list = document.getElementById("subdirectoryList");

0 commit comments

Comments
 (0)