Skip to content

0-8 Update Branch Status #52

0-8 Update Branch Status

0-8 Update Branch Status #52

name: 0-8 Update Branch Status
on:
workflow_run:
workflows: ["0-8 Cron"]
types:
- completed
jobs:
update_status:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: 0-8
- 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"}'