Skip to content

Commit

Permalink
Use checkout action for notify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed May 19, 2024
1 parent e00cf14 commit 7607edd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: DiscordHooks/github-actions-discord-webhook
path: webhook
fetch-depth: 1
- env:
WORKFLOW_NAME: ${{ inputs.name }}
HOOK_OS_NAME: ${{ runner.os }}
shell: bash
run: |
git clone --depth 1 https://github.com/DiscordHooks/github-actions-discord-webhook.git webhook
bash webhook/send.sh ${{ inputs.success && 'success' || 'failure' }} ${{ secrets.DISCORD_WEBHOOK }}
run: bash webhook/send.sh ${{ inputs.success && 'success' || 'failure' }} ${{ secrets.DISCORD_WEBHOOK }}

0 comments on commit 7607edd

Please sign in to comment.