ci: improve status push to discord
This commit is contained in:
parent
626987ba67
commit
a5db52b83e
3 changed files with 5 additions and 3 deletions
|
@ -14,7 +14,7 @@ outputs:
|
||||||
description: "ID of the message that was posted, for editing purposes in further calls."
|
description: "ID of the message that was posted, for editing purposes in further calls."
|
||||||
value: ""
|
value: ""
|
||||||
|
|
||||||
run:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
|
@ -22,5 +22,5 @@ run:
|
||||||
with:
|
with:
|
||||||
python-version: 3.12
|
python-version: 3.12
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install .
|
run: pip install -r ./.forgejo/actions/push-status-to-discord/requirements.txt
|
||||||
- run: python ./main.py ${{ inputs.webhook_url }} ${{ inputs.project_name }} ${{inputs.status }}
|
- run: python ./.forgejo/actions/push-status-to-discord/main.py ${{ inputs.webhook-url }} ${{ inputs.project-name }} ${{ inputs.status }}
|
||||||
|
|
1
.forgejo/actions/push-status-to-discord/requirements.txt
Normal file
1
.forgejo/actions/push-status-to-discord/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
httpx==0.27
|
|
@ -5,6 +5,7 @@ jobs:
|
||||||
pre-run-notify:
|
pre-run-notify:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.forgejo/actions/push-status-to-discord
|
- uses: ./.forgejo/actions/push-status-to-discord
|
||||||
with:
|
with:
|
||||||
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||||
|
|
Loading…
Reference in a new issue