-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e1e247
commit 72b4722
Showing
1 changed file
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,6 @@ jobs: | |
# Here we checkout the target branch of the PR | ||
repository: ${{ github.event.pull_request.base.repo.full_name }} | ||
ref: ${{ github.event.pull_request.base.ref }} | ||
token: ${{ secrets.GH_PAT }} | ||
|
||
- if: ${{ (steps.changes.outputs.src == 'true') && (steps.changes.outputs.src_count == 1) }} | ||
name: Install Python | ||
|
@@ -63,8 +62,18 @@ jobs: | |
filename_without_extension="${filename%.*}" # Remove extension | ||
python -m scripts.leaderboard --github_user="${{ github.event.pull_request.user.login }}" --prompt="$filename_without_extension" | ||
# - if: ${{ (steps.changes.outputs.src == 'true') && (steps.changes.outputs.src_count == 1) }} | ||
# name: Commit changes | ||
# uses: EndBug/add-and-commit@v9 | ||
# with: | ||
# default_author: github_actions | ||
- if: ${{ (steps.changes.outputs.src == 'true') && (steps.changes.outputs.src_count == 1) }} | ||
name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
default_author: github_actions | ||
name: Commit and push changes | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git add . | ||
git commit -m "Updated leaderboard" | ||
git push | ||
env: | ||
PAT_TOKEN: ${{ secrets.GH_PAT }} |