This commit is contained in:
@@ -24,6 +24,11 @@ jobs:
|
||||
|
||||
- name: Create issue on failure
|
||||
if: failure()
|
||||
shell: cmd
|
||||
run: |
|
||||
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 }}"
|
||||
env:
|
||||
GITEA_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 json
|
||||
import os
|
||||
import urllib.request
|
||||
import urllib.error
|
||||
|
||||
@@ -15,7 +16,7 @@ def main():
|
||||
parser.add_argument("--branch", required=True)
|
||||
parser.add_argument("--run", 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()
|
||||
|
||||
sha_short = args.sha[:7]
|
||||
|
||||
Reference in New Issue
Block a user