diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index aa2c1a3..5086479 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -106,7 +106,7 @@ # Add a unique identifier to prevent cache conflicts ACTIONS_CACHE_KEY_SUFFIX: "-${{ matrix.ruby-platform }}-${{ github.run_id }}" - - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: cross-gem-${{ matrix.ruby-platform }} path: pkg/*-${{ matrix.ruby-platform }}.gem @@ -145,7 +145,7 @@ bundler-cache: true cargo-cache: false - - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: pattern: cross-gem-* merge-multiple: true @@ -248,12 +248,11 @@ needs: [check-release, release] # A dry run builds without publishing, so there's nothing to announce. if: ${{ needs.release.result == 'success' && !inputs.dry_run }} - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK steps: - - uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0 + - uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0 with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: incoming-webhook payload: | { "text": "🎉 Released ${{ github.repository }} v${{ needs.check-release.outputs.version }}" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7d559c..e22d514 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,12 +79,11 @@ jobs: runs-on: ubuntu-latest needs: [rspec, static_type_check] if: ${{ failure() && github.ref == 'refs/heads/main' }} - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK steps: - - uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0 + - uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0 with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: incoming-webhook payload: | { "text": "${{ github.repository }}/${{ github.ref }}: FAILED\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"