Skip to content

Commit 8680d96

Browse files
committed
Add proper shell bash
1 parent 251e4ec commit 8680d96

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ jobs:
2424

2525
In the above example a `publiccode` file is updated every time code on the `main` branche is touched
2626

27+
> **Warning**
28+
> If you do not supply the action with an access token or an SSH key, you must access your repositories settings and provide `Read and Write Permissions` to the provided `GITHUB_TOKEN`, otherwise you'll potentially run into permission issues. Alternatively you can set the following in your workflow file to grant the action the permissions it needs.
29+
30+
```yml
31+
permissions:
32+
contents: write
33+
```
34+
2735
## Inputs
2836

2937
| Input Name | Description | Default Value |

action.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ runs:
4343
python-version: '3.x'
4444
# Transfer the repossitory data to the container
4545
- name: Transfer the repossitory data to the container
46+
shell: bash
4647
run: |
4748
echo "REPO_NAME=${{ github.event.repository.name }}" >> $GITHUB_ENV
4849
echo "REPO_DESC=${{ github.event.repository.description }}" >> $GITHUB_ENV
@@ -62,16 +63,17 @@ runs:
6263
# Create changes if it is a normal repository
6364
- name: Create or update the publiccode file
6465
if: (!contains(github.repository, '.github'))
65-
run: python update_publiccode.py
6666
shell: bash
67+
run: python update_publiccode.py
6768
# Create changes if it is an organisation repository
6869
- name: Create or update the publicorganisation file
6970
if: (contains(github.repository, '.github'))
70-
run: python update_publicorganisation.py
7171
shell: bash
72+
run: python update_publicorganisation.py
7273
# Commit changes if it is a normal repository
7374
- name: Commit changes
7475
if: (!contains(github.repository, '.github'))
76+
shell: bash
7577
run: |
7678
git config --local user.email "action@github.com"
7779
git config --local user.name "GitHub Action"
@@ -81,6 +83,7 @@ runs:
8183
# Commit changes if it is an organisation repository
8284
- name: Commit changes
8385
if: (contains(github.repository, '.github'))
86+
shell: bash
8487
run: |
8588
git config --local user.email "action@github.com"
8689
git config --local user.name "GitHub Action"
@@ -89,6 +92,7 @@ runs:
8992
git push
9093
# Post Repository URL to OpenCatalogi API
9194
- name: Post Repository URL to OpenCatalogi API
95+
shell: bash
9296
run: |
9397
curl -X POST "https://api.opencatalogi.nl/api/github_events" \
9498
-H "Content-Type: application/json" \

0 commit comments

Comments
 (0)