@@ -15,17 +15,23 @@ jobs:
1515 env :
1616 GITHUB_CONTEXT : ${{ toJson(github) }}
1717 run : echo "$GITHUB_CONTEXT"
18+ - name : Install Utils
19+ run : |
20+ apt-get update && apt-get --assume-yes install software-properties-common curl jq sed
21+ add-apt-repository ppa:git-core/ppa
22+ apt-get update && apt-get --assume-yes install git
23+ git --version
1824 - name : get pullrequest url
1925 run : |
2026 echo ${{ github.event.issue.pull_request.url }}
2127 - name : get upstream repo
2228 id : upstreamrepo
2329 run : |
24- echo "::set-output name= RemoteRepo:: $(curl -H "Accept: application/vnd.github.sailor-v-preview+json" --url ${{ github.event.issue.pull_request.url }} | jq '.head.repo.full_name' | sed 's/\"//g')"
30+ echo "RemoteRepo= $(curl -H "Accept: application/vnd.github.sailor-v-preview+json" --url ${{ github.event.issue.pull_request.url }} | jq '.head.repo.full_name' | sed 's/\"//g')" >> $GITHUB_OUTPUT
2531 - name : get upstream branch
2632 id : upstreambranch
2733 run : |
28- echo "::set-output name= branchname:: $(curl -H "Accept: application/vnd.github.sailor-v-preview+json" --url ${{ github.event.issue.pull_request.url }} | jq '.head.ref' | sed 's/\"//g')"
34+ echo "branchname= $(curl -H "Accept: application/vnd.github.sailor-v-preview+json" --url ${{ github.event.issue.pull_request.url }} | jq '.head.ref' | sed 's/\"//g')" >> $GITHUB_OUTPUT
2935 - name : echo upstream repo:branch
3036 run : |
3137 echo ${{ steps.upstreamrepo.outputs.RemoteRepo }}:${{ steps.upstreambranch.outputs.branchname }}
@@ -34,14 +40,15 @@ jobs:
3440 with :
3541 repository : ${{ steps.upstreamrepo.outputs.RemoteRepo }}
3642 ref : ${{ steps.upstreambranch.outputs.branchname }}
37- - name : Install Uncrustify and Git
38- run : apt-get update && apt-get --assume-yes install uncrustify git
43+ - name : Install Uncrustify
44+ run : apt-get update && apt-get --assume-yes install uncrustify
3945 - name : Run Uncrustify
4046 run : |
4147 uncrustify --version
4248 find . -iname "*.[hc]" -exec uncrustify -c tools/uncrustify.cfg --no-backup --replace {} +
4349 - name : Push changes to upstream repository
4450 run : |
51+ git config --global --add safe.directory '*'
4552 git config --global user.name 'GitHub Action'
4653 git config --global user.email '[email protected] ' 4754 git add -A
0 commit comments