1
0
Fork 0

ci: improve status push to discord
Some checks failed
/ pre-run-notify (push) Failing after 44s
/ sast (push) Failing after 51s

This commit is contained in:
Marc 2024-07-19 22:03:01 -04:00
parent 626987ba67
commit a5db52b83e
Signed by: marc
GPG key ID: 048E042F22B5DC79
3 changed files with 5 additions and 3 deletions

View file

@ -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 }}

View file

@ -0,0 +1 @@
httpx==0.27

View file

@ -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 }}