From 213497b12af0d1e5c1f95f9325ebeb02357c72a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uraz=20Akg=C3=BCltan?= Date: Mon, 26 May 2025 10:56:20 +0200 Subject: [PATCH] Fix github action --- .github/actions/slack-notification/action.yml | 11 ++++++----- .github/workflows/update_releases_list.yml | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/actions/slack-notification/action.yml b/.github/actions/slack-notification/action.yml index 54019b70..e6f7e00e 100644 --- a/.github/actions/slack-notification/action.yml +++ b/.github/actions/slack-notification/action.yml @@ -16,9 +16,10 @@ runs: using: "composite" steps: - name: Send Slack notification - uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2 + uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52 # v2.1.0 with: - channel-id: ${{ inputs.channel-id }} - slack-message: ${{ inputs.message }} - env: - SLACK_BOT_TOKEN: ${{ inputs.bot-token }} \ No newline at end of file + method: chat.postMessage + token: ${{ inputs.bot-token }} + payload: | + channel: ${{ inputs.channel-id }} + text: ${{ inputs.message }} diff --git a/.github/workflows/update_releases_list.yml b/.github/workflows/update_releases_list.yml index c5cf562e..02c41427 100644 --- a/.github/workflows/update_releases_list.yml +++ b/.github/workflows/update_releases_list.yml @@ -31,7 +31,7 @@ jobs: - name: Create Pull Request id: pr - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 with: commit-message: "[BUILD] Update Release List and Version Compatibility" committer: github-action <41898282+github-actions[bot]@users.noreply.github.com> @@ -56,4 +56,4 @@ jobs: A new version of Native Template has been released with updated version compatibility information. - Please review the PR for more details: ${{ github.server_url }}/${{ github.repository }}/pull/${{ steps.pr.outputs.number }} + Please review the PR for more details: ${{ github.server_url }}/${{ github.repository }}/pull/${{ steps.pr.outputs.pull-request-number }}