Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1name: "set pending status" 2 3on: 4 pull_request_target: 5 6# WARNING: 7# When extending this action, be aware that $GITHUB_TOKEN allows write access to 8# the GitHub repository. This means that it should not evaluate user input in a 9# way that allows code injection. 10 11permissions: 12 contents: read 13 14jobs: 15 action: 16 permissions: 17 statuses: write 18 runs-on: ubuntu-latest 19 steps: 20 - name: set pending status 21 if: github.repository_owner == 'NixOS' 22 env: 23 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 24 run: | 25 curl \ 26 -X POST \ 27 -H "Accept: application/vnd.github.v3+json" \ 28 -H "Authorization: token $GITHUB_TOKEN" \ 29 -d '{"state": "pending", "target_url": " ", "description": "This pending status will be cleared when ofborg starts eval.", "context": "Wait for ofborg"}' \ 30 "https://api.github.com/repos/NixOS/nixpkgs/statuses/${{ github.event.pull_request.head.sha }}"