mirror of
https://github.com/peass-ng/PEASS-ng.git
synced 2026-01-20 00:31:25 -08:00
Compare commits
2 Commits
fix-pr-fai
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89a55bde9b | ||
|
|
54fc62d29b |
29
.github/workflows/pr-failure-codex-dispatch.yml
vendored
29
.github/workflows/pr-failure-codex-dispatch.yml
vendored
@@ -26,26 +26,15 @@ jobs:
|
|||||||
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
pr_json=$(gh api -H "Accept: application/vnd.github+json" \
|
pr_author=$(gh api -H "Accept: application/vnd.github+json" \
|
||||||
/repos/${{ github.repository }}/pulls/${PR_NUMBER})
|
/repos/${{ github.repository }}/pulls/${PR_NUMBER} \
|
||||||
pr_author=$(printf "%s" "$pr_json" | python3 - <<'PY'
|
--jq '.user.login')
|
||||||
import json,sys
|
pr_head_repo=$(gh api -H "Accept: application/vnd.github+json" \
|
||||||
data=json.load(sys.stdin)
|
/repos/${{ github.repository }}/pulls/${PR_NUMBER} \
|
||||||
print(data.get("user",{}).get("login",""))
|
--jq '.head.repo.full_name')
|
||||||
PY
|
pr_head_branch=$(gh api -H "Accept: application/vnd.github+json" \
|
||||||
)
|
/repos/${{ github.repository }}/pulls/${PR_NUMBER} \
|
||||||
pr_head_repo=$(printf "%s" "$pr_json" | python3 - <<'PY'
|
--jq '.head.ref')
|
||||||
import json,sys
|
|
||||||
data=json.load(sys.stdin)
|
|
||||||
print(data.get("head",{}).get("repo",{}).get("full_name",""))
|
|
||||||
PY
|
|
||||||
)
|
|
||||||
pr_head_branch=$(printf "%s" "$pr_json" | python3 - <<'PY'
|
|
||||||
import json,sys
|
|
||||||
data=json.load(sys.stdin)
|
|
||||||
print(data.get("head",{}).get("ref",""))
|
|
||||||
PY
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
echo "number=${PR_NUMBER}"
|
echo "number=${PR_NUMBER}"
|
||||||
echo "author=${pr_author}"
|
echo "author=${pr_author}"
|
||||||
|
|||||||
Reference in New Issue
Block a user