This commit is contained in:
alyssa 2024-09-06 16:14:27 +09:00
parent 6dd7a8a0af
commit 7a57e0b782
4 changed files with 5 additions and 7 deletions

View file

@ -1,10 +1,8 @@
name: PluralKit CI name: PluralKit CI
on: on:
push:
pull_request:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
dispatchData: dispatchData: {}
jobs: jobs:
run: run:
@ -22,7 +20,7 @@ jobs:
GIT_SHA: ${{ github.sha }} GIT_SHA: ${{ github.sha }}
REPO_URL: https://github.com/${{ github.repository }} REPO_URL: https://github.com/${{ github.repository }}
ACTION_LOGS_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ jobs. }} ACTION_LOGS_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
DISPATCH_DATA: ${{ inputs.dispatchData }} DISPATCH_DATA: ${{ inputs.dispatchData }}
steps: steps:

View file

@ -21,7 +21,7 @@ jobs:
spawn_jobs: spawn_jobs:
name: Spawn jobs name: Spawn jobs
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: ["build-ci-container"] needs: ["build_container"]
container: container:
image: ghcr.io/pluralkit/ci:${{ github.sha }} image: ghcr.io/pluralkit/ci:${{ github.sha }}
volumes: volumes:

View file

@ -33,7 +33,7 @@ def report_status(name, start_time, exit=None):
'started_at': start_time, 'started_at': start_time,
'output': { 'output': {
'title': name, 'title': name,
'summary': f"dasdfasdfasdf", # todo 'summary': f"Check logs at {must_get_env("ACTION_LOGS_URL")}",
'text': "[]", 'text': "[]",
'annotations': [] 'annotations': []
}, },

View file

@ -97,7 +97,7 @@ def create_jobs():
if len(jobs) == 0: if len(jobs) == 0:
print("no jobs to run (??)") print("no jobs to run (??)")
exit 0 return 0
if __name__ == "__main__": if __name__ == "__main__":
print("hello from python!") print("hello from python!")