ci: improve status push to discord
This commit is contained in:
parent
626987ba67
commit
e5114403ff
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."
|
||||
value: ""
|
||||
|
||||
run:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Setup Python
|
||||
|
@ -22,5 +22,5 @@ run:
|
|||
with:
|
||||
python-version: 3.12
|
||||
- name: Install dependencies
|
||||
run: pip install .
|
||||
- run: python ./main.py ${{ inputs.webhook_url }} ${{ inputs.project_name }} ${{inputs.status }}
|
||||
run: pip install -r ./.forgejo/actions/push-status-to-discord/requirements.txt
|
||||
- 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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.forgejo/actions/push-status-to-discord
|
||||
with:
|
||||
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
|
|
Loading…
Reference in a new issue