From 7607eddd52d7f430d7432d7672ac38601f5fff1b Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sat, 18 May 2024 19:58:24 -0500 Subject: [PATCH] Use checkout action for notify workflow --- .github/workflows/notify.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 3c1cde438..eda9aa26e 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -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 }}