Skip to content

Commit

Permalink
fix: use actions/upload-artifact to update the new json file
Browse files Browse the repository at this point in the history
  • Loading branch information
tahadostifam authored Apr 1, 2024
1 parent 96ee921 commit 58449c3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/update_contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
echo "GITHUB_PERSONAL_ACCESS_TOKEN=${{ secrets.GITHUBPA }}" >> $GITHUB_ENV # Store token securely
echo "::endgroup::"
- name: Update contributors list
run: ruby main.rb
- name: Commit and push new contributors.json
run: |
git config --global user.email "github_actions@mail.com"
git config --global user.name "github actions"
git add json/contributors.json
git commit -m "fix: update contributors list at json/contributors.json"
chmod +x main.rb
ruby main.rb
- uses: actions/upload-artifact@v4
with:
name: Contributors List
path: ./json/contributors.json

0 comments on commit 58449c3

Please sign in to comment.