Skip to content

0-5 Update Branch Status #63

0-5 Update Branch Status

0-5 Update Branch Status #63

name: 0-5 Update Branch Status
on:
workflow_run:
workflows: ["0-5 Cron"]
types:
- completed
jobs:
update_status:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: 0-5
- name: get SHA
run: echo "SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Update commit status
run: |
env
curl \
-X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.SHA }} \
-d '{"state": "${{ github.event.workflow_run.conclusion }}", "context": "Cron"}'