File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,6 @@ jobs:
128128 git config --global --add safe.directory ${GITHUB_WORKSPACE}
129129 git fetch
130130 git checkout ${{ github.event.inputs.commit_sha }}
131- - uses : actions/checkout@v3
132- with :
133- ref : ${{ env.COMMIT_SHA }}
134131
135132 - name : Run monitoring
136133 run : |
Original file line number Diff line number Diff line change 2727 - name : Print environment variables
2828 run : printenv
2929
30- - uses : actions/checkout@v3
31- with :
32- ref : ${{ github.event.inputs.commit_sha }}
30+ - name : Checkout repository
31+ uses : actions/checkout@v3
32+
33+ - name : Check out ${{ github.event.inputs.commit_sha }} commit
34+ if : github.event.inputs.commit_sha != ''
35+ run : |
36+ git config --global --add safe.directory ${GITHUB_WORKSPACE}
37+ git fetch
38+ git checkout ${{ github.event.inputs.commit_sha }}
3339
3440 - uses : gradle/gradle-build-action@v2
3541 with :
You can’t perform that action at this time.
0 commit comments