Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: DHD2280 <[email protected]>
  • Loading branch information
DHD2280 committed Nov 13, 2024
1 parent a2e8f16 commit 70e177e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/fetch_contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

permissions:
contents: write
pull-requests: write

jobs:
contrib-readme-job:
Expand All @@ -26,11 +25,22 @@ jobs:
with:
image_size: 32
readme_path: "docs/contributors.md"
collaborators: outside
collaborators: all
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit changes
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
run: |
printf '%s\n' '$(curl "https://api.github.com/repos/DHD2280/Oxygen-Customizer/contributors")' > ./app/src/main/assets/Misc/contributors.json
printf '%s\n' '$(curl "https://api.github.com/repos/DHD2280/Oxygen-Customizer/contributors")' > ./app/src/main/assets/Misc/contributors.json
- name: Commit
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'beta'
commit-message: 'Fetch Contributors'
force-add: 'true'
files: app/src/main/assets/Misc/contributors.json docs/contributors.md
name: GitHub
email: [email protected]

0 comments on commit 70e177e

Please sign in to comment.