forked from projectdiscovery/nuclei-action
-
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
1 parent
be8975b
commit a4a2e4a
Showing
2 changed files
with
11 additions
and
59 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 |
---|---|---|
|
@@ -28,21 +28,21 @@ jobs: | |
- name: Build project | ||
run: npm run build | ||
|
||
- name: Configure Git | ||
- name: Commit changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- name: Commit changes | ||
id: commit-changes | ||
run: | | ||
git status | ||
git add dist/ | ||
git diff --quiet && git diff --staged --quiet || git commit -m "Update dist with compiled changes" | ||
echo "::set-output name=CHANGES::$(git rev-parse HEAD)" | ||
if [ $? -eq 0 ]; then echo "CHANGES=true" >> $GITHUB_ENV; fi | ||
- name: Push changes | ||
if: steps.commit-changes.outputs.CHANGES | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
if: env.CHANGES == 'true' | ||
run: | | ||
git status | ||
echo "there are changes" | ||
# uses: ad-m/github-push-action@master | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# branch: ${{ github.ref }} |
This file was deleted.
Oops, something went wrong.