generated from peter-evans/swagger-github-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
1 addition
and
6 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 |
---|---|---|
|
@@ -10,6 +10,7 @@ jobs: | |
if: "contains(github.event.commits[0].message, '[CREATE-SWAGGER]')" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BLOCKSCOUT_BOT_TOKEN }} | ||
GH_TOKEN: ${{ secrets.BLOCKSCOUT_BOT_TOKEN }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
|
@@ -18,11 +19,6 @@ jobs: | |
# fetch the last 2 commits to check difference | ||
fetch-depth: 2 | ||
|
||
- name: Set git identity to blockscout-bot | ||
run: | | ||
git config user.name "blockscout-bot" | ||
git config user.email "[email protected]" # replace with the correct email if needed | ||
- name: Check commit message | ||
id: check-commit | ||
run: | | ||
|
@@ -62,7 +58,6 @@ jobs: | |
- name: Commit and push changes | ||
run: | | ||
echo $GITHUB_TOKEN | ||
git add . | ||
git commit -m "[BOT] Add index.html for new swagger.yaml files" | ||
git push |