-
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.
feat: add actions for encrypted rules
- Loading branch information
Showing
1 changed file
with
14 additions
and
10 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 |
---|---|---|
|
@@ -34,14 +34,18 @@ jobs: | |
run: | | ||
cp ./encrypted-hayabusa-rules.zip ./self | ||
- name: Commit and push if changes | ||
- name: Configure Git | ||
run: | | ||
cd ./self | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add -A | ||
if git diff-index --quiet HEAD --; then | ||
echo "No changes to commit" | ||
else | ||
git commit -m "Add updated encrypted-hayabusa-rules.zip" | ||
git push | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
- name: Commit changes | ||
run: | | ||
git add encrypted-hayabusa-rules.zip | ||
git commit -m "Automated update" | ||
- name: Push changes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git push origin main |