File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
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 }}
You can’t perform that action at this time.
0 commit comments