Skip to content

Commit

Permalink
build(deps): bump slackapi/slack-github-action from 1.27 to 2.0 (#1226)
Browse files Browse the repository at this point in the history
Bumps
[slackapi/slack-github-action](https://github.com/slackapi/slack-github-action)
from 1.27 to 2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/slackapi/slack-github-action/releases">slackapi/slack-github-action's
releases</a>.</em></p>
<blockquote>
<h2>Slack Send v2.0.0</h2>
<p><strong>YAML! And more API methods! With improved erroring! And
more!</strong></p>
<p>Sending data to Slack can now be done with the YAML format, and that
data can be sent to [a Slack API method][methods] or <a
href="https://github.com/slackapi/slack-github-action/tree/main#sending-techniques">technique
of choice</a> with the provided payload. And additional configurations
can improve error handling or customize values between steps.</p>
<p>Breaking changes happen with this update and recommended migration
strategies are detailed below. Adding this step to new workflows might
prefer to follow the <a
href="https://github.com/slackapi/slack-github-action/tree/main#slack-send-github-action"><code>README</code></a>
instead 📚</p>
<h2>What's changed</h2>
<p>Both inputs of payload variables, techniques for sending the payload,
additional configurations, and expected outputs were changed:</p>
<ul>
<li><strong>Sending variables</strong>
<ul>
<li>Breaking changes
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#only-one-payload-input-can-be-provided">Only
one payload input can be provided</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#only-one-technique-to-send-can-be-provided">Only
one technique to send can be provided</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#variable-replacements-no-longer-happen-by-default">Variable
replacements no longer happen by default</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#payload-file-path-parsed-option-was-removed">Payload
file path parsed option was removed</a></li>
</ul>
</li>
<li>Enhancements
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#payloads-can-now-be-written-in-yaml">Payloads
can now be written in YAML</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#payload-can-now-be-written-in-unwrapped-json">Payload
can now be written in unwrapped JSON</a></li>
</ul>
</li>
</ul>
</li>
<li><strong>Sending techniques</strong>
<ul>
<li>Technique 1: Slack Workflow Builder
<ul>
<li>Breaking changes
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#the-webhook-type-must-be-specified-in-webhook-inputs">The
webhook type must be specified in webhook inputs</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#payload-flattening-no-longer-happens-by-default">Payload
flattening no longer happens by default</a></li>
</ul>
</li>
<li>Enhancements
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#the-webhook-url-can-be-specified-in-webhook-inputs">The
webhook URL can be specified in webhook inputs</a></li>
</ul>
</li>
</ul>
</li>
<li>Technique 2: Slack API method
<ul>
<li>Breaking changes
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#the-slack-api-method-now-must-be-specified-in-inputs">The
Slack API method now must be specified in inputs</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#a-token-must-be-provided-with-other-inputs">A
token must be provided with other inputs</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#inputs-to-the-slack-api-method-must-be-provided-in-payloads">Inputs
to the Slack API method must be provided in payloads</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#messages-cannot-be-sent-to-multiple-channels-in-one-step">Messages
cannot be sent to multiple channels in one step</a></li>
</ul>
</li>
</ul>
</li>
<li>Technique 3: Slack incoming webhook
<ul>
<li>Breaking changes
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#the-webhook-type-must-be-specified-for-incoming-webhooks">The
webhook type must be specified for incoming webhooks</a></li>
</ul>
</li>
<li>Enhancements
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#the-webhook-url-can-be-specified-for-incoming-webhooks">The
webhook URL can be specified for incoming webhook</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><strong>Additional configurations</strong>
<ul>
<li>Enhancements
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#steps-can-exit-with-an-error-after-a-failed-slack-api-call">Steps
can exit with an error after a failed Slack API call</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#failed-requests-can-be-retried-various-amounts-of-times">Failed
requests can be retried various amounts of times</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#provided-payloads-can-be-flattened-with-a-delimiter">Provided
payloads can be flattened with a delimiter</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#provided-payloads-can-have-templated-variables-replaced">Provided
payloads can have templated variables replaced</a></li>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#proxying-https-requests-can-be-done-within-inputs">Proxying
HTTPS requests can be done within inputs</a></li>
</ul>
</li>
</ul>
</li>
<li><strong>Expected outputs</strong>
<ul>
<li>Breaking changes
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#the-time-value-is-now-returned-as-the-unix-epoch-time">The
time value is now returned as the Unix epoch time</a></li>
</ul>
</li>
<li>Enhancements
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/blob/HEAD/#an-ok-value-is-added-to-represent-response-success">An
ok value is added to represent response success</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/slackapi/slack-github-action/commit/485a9d42d3a73031f12ec201c457e2162c45d02d"><code>485a9d4</code></a>
Release</li>
<li><a
href="https://github.com/slackapi/slack-github-action/commit/e598089eaef53883a2d9b325e044899548518a03"><code>e598089</code></a>
chore(release): tag version 2.0.0</li>
<li><a
href="https://github.com/slackapi/slack-github-action/commit/e9b3a6beef047e819b8fb417da538f97a93a2ec8"><code>e9b3a6b</code></a>
feat!: wrap payloads to send to a &quot;method&quot; with
&quot;token&quot; or &quot;webhook&quot; (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/333">#333</a>)</li>
<li>See full diff in <a
href="https://github.com/slackapi/slack-github-action/compare/v1.27...v2.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=slackapi/slack-github-action&package-manager=github_actions&previous-version=1.27&new-version=2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
  • Loading branch information
Guts authored Dec 1, 2024
2 parents 8df5e4d + 7612d70 commit 445eeb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/manual_new_rdp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:

- name: Notification Slack
id: slack
uses: slackapi/slack-github-action@v1.27
uses: slackapi/slack-github-action@v2.0
if: "${{ github.event.inputs.notify-slack == 'true' }}"
with:
payload: '{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":":newspaper: La GeoRDP du ${{ env.DATE_FR_LONG }} a été créée et attend vos contributions :writing_hand: !"}},{"type":"section","fields":[{"type":"mrkdwn","text":"Créée par *${{ github.actor }}* via GitHub Action."}]},{"type":"actions","elements":[{"type":"button","text":{"type":"plain_text","emoji":true,"text":":squid: Voir la PR (GitHub)"},"url":"${{ steps.cpr.outputs.pr_url }}"},{"type":"button","text":{"type":"plain_text","emoji":true,"text":":eye: Voir la preview (Netlify)"},"style":"primary","url":"https://preview-pullrequest-${{steps.cpr.outputs.pr_number}}--geotribu-preprod.netlify.app/"}]}]}'
Expand Down

0 comments on commit 445eeb8

Please sign in to comment.