Skip to content

Commit 65484a8

Browse files
committed
fix: using another gh action for commit and push
1 parent b42b5e4 commit 65484a8

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/generate_srs_files.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Generate SRS Files
22

33
on:
44
pull_request:
5+
paths: ["csv/**"]
56

67
jobs:
78
build:
@@ -35,7 +36,10 @@ jobs:
3536
run: chmod +x ./csv_to_srs
3637
- name: Generating SRS files
3738
run: ./csv_to_srs -input_dir ./csv -output_dir ./srs
38-
- name: Add, commit, and push
39-
uses: actions4git/add-commit-push@v1.0.0
40-
with:
41-
path: ./srs
39+
- uses: actions4git/setup-git@v1
40+
- run: |
41+
git add ./srs
42+
if ! git diff --cached --quiet; then
43+
git commit -m 'Generating SRS rule set'
44+
git push origin $GITHUB_HEAD_REF
45+
fi

0 commit comments

Comments
 (0)