Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at staging-python 26 lines 755 B view raw
1name: "clear pending status" 2 3on: 4 check_suite: 5 types: [ completed ] 6 7permissions: 8 contents: read 9 10jobs: 11 action: 12 permissions: 13 statuses: write 14 runs-on: ubuntu-latest 15 steps: 16 - name: clear pending status 17 if: github.repository_owner == 'NixOS' && github.event.check_suite.app.name == 'OfBorg' 18 env: 19 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 20 run: | 21 curl \ 22 -X POST \ 23 -H "Accept: application/vnd.github.v3+json" \ 24 -H "Authorization: token $GITHUB_TOKEN" \ 25 -d '{"state": "success", "target_url": " ", "description": " ", "context": "Wait for ofborg"}' \ 26 "https://api.github.com/repos/NixOS/nixpkgs/statuses/${{ github.event.check_suite.head_sha }}"