File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3030 runs-on: ubuntu-latest
3131 steps:
3232 - name: Get previous workflow status
33- uses: Mercymeilya/last-workflow-status@v0.3.1
33+ uses: Mercymeilya/last-workflow-status@v0.3.2
3434 id: last_status
3535 with:
3636 github_token: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 3131 run : |
3232 WORKFLOW_ID=$(curl --header 'authorization: Bearer ${{ inputs.github_token }}' \
3333 --header 'content-type: application/json' \
34- https://api. github.com /repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq -r .workflow_id)
34+ ${{ github.api_url }} /repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq -r .workflow_id)
3535 echo "WORKFLOW_ID=$WORKFLOW_ID" >> $GITHUB_ENV
3636 echo "Workflow id: ${WORKFLOW_ID}"
3737 - name : Get previous build status
4040 run : |
4141 last_status=$(curl --silent --header 'authorization: Bearer ${{ inputs.github_token }}' \
4242 --header 'content-type: application/json' \
43- "https://api. github.com /repos/${{ github.repository }}/actions/workflows/${{ env.WORKFLOW_ID }}/runs?per_page=1&status=completed&branch=${{ env.BRANCH_NAME }}" \
43+ "${{ github.api_url }} /repos/${{ github.repository }}/actions/workflows/${{ env.WORKFLOW_ID }}/runs?per_page=1&status=completed&branch=${{ env.BRANCH_NAME }}" \
4444 | jq -r .workflow_runs[0].conclusion)
45- echo "Status of the previous build: $last_status"
4645 echo "::set-output name=last_status::$last_status"
46+ echo "Status of the previous build: $last_status"
You can’t perform that action at this time.
0 commit comments