Skip to content

Commit

Permalink
ci(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 (#1669)
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.0 to 2.0.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><a
href="https://github.com/slackapi/slack-github-action/commit/74ae656892e6e68e5168be5fb5fc1368a5569b3b"><code>74ae656</code></a>
chore(release): tag version 1.27.1</li>
<li><a
href="https://github.com/slackapi/slack-github-action/commit/bd0e2818bf5e26dd18c03ce249d01eceb8e1cb04"><code>bd0e281</code></a>
build(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/355">#355</a>)</li>
<li><a
href="https://github.com/slackapi/slack-github-action/commit/e1275295793d6d76cbc729c451b2e81dbf52ecaa"><code>e127529</code></a>
build(deps): bump <code>@​actions/core</code> from 1.10.1 to 1.11.1 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/354">#354</a>)</li>
<li><a
href="https://github.com/slackapi/slack-github-action/commit/6b51022aeafdaaaccae849ca0a1b963ed597bf1f"><code>6b51022</code></a>
build(deps-dev): bump eslint-plugin-jsdoc from 50.3.1 to 50.4.3 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/353">#353</a>)</li>
<li><a
href="https://github.com/slackapi/slack-github-action/commit/555e4ad8ef03a28151a2332aeba97ed5e3aeea37"><code>555e4ad</code></a>
build(deps-dev): bump eslint-plugin-import from 2.30.0 to 2.31.0 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/352">#352</a>)</li>
<li><a
href="https://github.com/slackapi/slack-github-action/commit/8d4500e89ea2d0c66975b82ebffbca9da18ecefc"><code>8d4500e</code></a>
build(deps): bump <code>@​slack/web-api</code> from 7.5.0 to 7.7.0 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/351">#351</a>)</li>
<li><a
href="https://github.com/slackapi/slack-github-action/commit/d0dece60f0be2ec50f76b5de480d355c020cd2e1"><code>d0dece6</code></a>
build(deps-dev): bump mocha from 10.7.3 to 10.8.2 (<a
href="https://redirect.github.com/slackapi/slack-github-action/issues/350">#350</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/slackapi/slack-github-action/compare/v1.27.0...v2.0.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.0&new-version=2.0.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>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Agustín Borgna <[email protected]>
  • Loading branch information
dependabot[bot] and aborgna-q authored Nov 19, 2024
1 parent b0b440c commit f0bd678
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/notify-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
if: needs.coverage-trend.outputs.should_notify == 'true'
steps:
- name: Send notification
uses: slackapi/slack-github-action@v1.27.0
uses: slackapi/slack-github-action@v2.0.0
with:
channel-id: 'C04SHCL4FKP'
slack-message: ${{ needs.coverage-trend.outputs.msg }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: 'C04SHCL4FKP'
text: ${{ needs.coverage-trend.outputs.msg }}

0 comments on commit f0bd678

Please sign in to comment.