Skip to content

Commit 1b433a5

Browse files
update yaml file
1 parent 3c1608f commit 1b433a5

3 files changed

Lines changed: 3620 additions & 3 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
1+
# yaml-language-server: $schema=./.github/workflows/github-workflow.json
2+
23
name: Update Library
34
on:
45
issues:
@@ -7,6 +8,8 @@ on:
78
jobs:
89
update:
910
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # Grant write permissions to the repository contents
1013
steps:
1114
- name: Checkout repository
1215
uses: actions/checkout@v2
@@ -23,7 +26,7 @@ jobs:
2326
2427
- name: Run Python script
2528
env:
26-
ISSUE_BODY: ${{ github.event.issue.body }} # Pass issue body as environment variable
29+
ISSUE_BODY: ${{ github.event.issue.body }}
2730
run: |
2831
python update_library.py
2932
@@ -33,4 +36,4 @@ jobs:
3336
git config --global user.email "actions@github.com"
3437
git add data/library.json data/library.csv
3538
git commit -m "Update library data"
36-
git push
39+
git push

0 commit comments

Comments
 (0)