Skip to content

Commit 587530e

Browse files
authored
Update main.yml
1 parent 4533071 commit 587530e

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,18 @@ jobs:
2020
run: |
2121
wget --no-cache -O "Pagetual/items_all.json" http://wedata.net/databases/AutoPagerize/items_all.json
2222
23-
- uses: technote-space/get-diff-action@v6
24-
with:
25-
FILES: Pagetual/items_all.json
23+
#- uses: technote-space/get-diff-action@v6
24+
# with:
25+
# FILES: Pagetual/items_all.json
26+
- name: Get changed files
27+
id: changes
28+
# Set outputs using the command.
29+
run: |
30+
echo "::set-output name=all::$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | xargs)"
2631
2732
- name: Commit
28-
if: env.GIT_DIFF
33+
#if: env.GIT_DIFF
34+
if: ${{changes.outputs.all}}
2935
run: |
3036
git config user.name "github-actions[bot]"
3137
git config user.email "512946+github-actions[bot]@users.noreply.github.com"
@@ -34,7 +40,7 @@ jobs:
3440
git commit -m "auto commit from github actions"
3541
3642
- name: Push
37-
if: env.GIT_DIFF
43+
if: ${{changes.outputs.all}}
3844
uses: ad-m/github-push-action@master
3945
with:
4046
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)