refactor: pull artifact handling in action
This commit is contained in:
parent
7fdf2498a9
commit
50061a938b
2 changed files with 8 additions and 7 deletions
|
@ -11,6 +11,7 @@ inputs:
|
||||||
message-id:
|
message-id:
|
||||||
description: "Message ID to edit."
|
description: "Message ID to edit."
|
||||||
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
message-id:
|
message-id:
|
||||||
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."
|
||||||
|
@ -27,4 +28,10 @@ runs:
|
||||||
run: pip install -r ./.forgejo/actions/push-status-to-discord/requirements.txt
|
run: pip install -r ./.forgejo/actions/push-status-to-discord/requirements.txt
|
||||||
- id: post-message
|
- id: post-message
|
||||||
run: |
|
run: |
|
||||||
echo "message-id=$(python ./.forgejo/actions/push-status-to-discord/main.py ${{ inputs.webhook-url }} ${{ inputs.project-name }} ${{ inputs.status }} ${{ inputs.message-id }})" >> $GITHUB_OUTPUT
|
echo "message-id=$(python ./.forgejo/actions/push-status-to-discord/main.py ${{ inputs.webhook-url }} ${{ inputs.project-name }} ${{ inputs.status }} ${{ inputs.message-id }})" >> discord-context
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
path: ./discord-context
|
||||||
|
name: "${{ github.sha }}-${{ github.run_number }}-discord-context.zip"
|
||||||
|
retention-days: 1
|
||||||
|
overwrite: true
|
||||||
|
|
|
@ -12,12 +12,6 @@ jobs:
|
||||||
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||||
project-name: ${{ github.repository }}
|
project-name: ${{ github.repository }}
|
||||||
status: "Started"
|
status: "Started"
|
||||||
- run: echo ${{ steps.post-status.outputs.message-id }} >> discord-context
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
path: ./discord-context
|
|
||||||
name: "${{ github.sha }}-${{ github.run_number }}-discord-context.zip"
|
|
||||||
retention-days: 1
|
|
||||||
sast:
|
sast:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue