diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 070873c..892e14b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,8 +34,11 @@ jobs: - name: Create status shell: bash run: | + git fetch origin ${{ github.event.inputs.branch }} + echo "COMMIT_SHA=$(git rev-parse origin/${{ github.event.inputs.branch }})" >> $GITHUB_ENV + curl --request POST \ - --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \ + --url https://api.github.com/repos/${{ github.repository }}/statuses/$COMMIT_SHA \ --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ --header 'content-type: application/json' \ --data '{