This commit is contained in:
@@ -24,6 +24,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Create issue on failure
|
- name: Create issue on failure
|
||||||
if: failure()
|
if: failure()
|
||||||
shell: cmd
|
env:
|
||||||
run: |
|
GITEA_API_TOKEN: ${{ secrets.D }}
|
||||||
python scripts/create_failure_issue.py --sha "${{ github.sha }}" --branch "${{ github.ref_name }}" --run "${{ github.run_number }}" --message "${{ github.event.head_commit.message }}" --api-token "${{ secrets.D }}"
|
run: >-
|
||||||
|
python scripts/create_failure_issue.py
|
||||||
|
--sha "${{ github.sha }}"
|
||||||
|
--branch "${{ github.ref_name }}"
|
||||||
|
--run "${{ github.run_number }}"
|
||||||
|
--message "${{ github.event.head_commit.message }}"
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"WARNING": "This file is automatically generated by act-runner. Do not edit it manually unless you know what you are doing. Removing this file will cause act runner to re-register as a new runner.",
|
||||||
|
"id": 1,
|
||||||
|
"uuid": "fe5aba44-dfb8-49e4-9da5-2f0dc62081e4",
|
||||||
|
"name": "document-analyzer-runner",
|
||||||
|
"token": "799fa5df52b7c7fd8df30005f4b0c02c1a7cfeb3",
|
||||||
|
"address": "http://localhost:3000",
|
||||||
|
"labels": [
|
||||||
|
"shell:host"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import urllib.error
|
import urllib.error
|
||||||
|
|
||||||
@@ -15,7 +16,7 @@ def main():
|
|||||||
parser.add_argument("--branch", required=True)
|
parser.add_argument("--branch", required=True)
|
||||||
parser.add_argument("--run", required=True)
|
parser.add_argument("--run", required=True)
|
||||||
parser.add_argument("--message", required=True)
|
parser.add_argument("--message", required=True)
|
||||||
parser.add_argument("--api-token", required=True)
|
parser.add_argument("--api-token", default=os.environ.get("GITEA_API_TOKEN", ""))
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
sha_short = args.sha[:7]
|
sha_short = args.sha[:7]
|
||||||
|
|||||||
Reference in New Issue
Block a user