diff --git a/docs/sending-data-slack-api-method.md b/docs/sending-data-slack-api-method.md index e5592b5e..213c76da 100644 --- a/docs/sending-data-slack-api-method.md +++ b/docs/sending-data-slack-api-method.md @@ -123,6 +123,8 @@ Posting [threaded replies to a message](/messaging/#threading) from a past job c Calling [a Slack API method](/reference/methods) with [`@slack/web-api`](/tools/node-slack-sdk/web-api/) makes [uploading a file](/messaging/working-with-files#uploading_files) just another API call with all of the convenience of the [`files.uploadV2`](/tools/node-slack-sdk/web-api/#upload-a-file) method: ```yaml +- name: Checkout an imagined project + uses: actions/checkout@v6 - name: Share a file to that channel uses: slackapi/slack-github-action@v3.0.3 with: @@ -135,6 +137,8 @@ Calling [a Slack API method](/reference/methods) with [`@slack/web-api`](/tools/ filename: "results-${{ github.sha }}.out" ``` +The [checkout](https://github.com/actions/checkout) step makes existing contents available to upload from a workflow. + ## Expected outputs The technique, like all Slack Github Action techniques, [outputs values](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/passing-information-between-jobs) that can be used as inputs in following steps of a GitHub workflow. @@ -173,7 +177,6 @@ https://github.com/slackapi/slack-github-action/blob/main/example-workflows/Tech This workflow creates a channel after a bug is reported and add members of a usergroup by chaining multiple Slack API method calls together. - ```js reference https://github.com/slackapi/slack-github-action/blob/main/example-workflows/Technique_2_Slack_API_Method/invite.yml ```