-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: complete example manifest and workflows after testing
- Loading branch information
Showing
16 changed files
with
371 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 113 additions & 1 deletion
114
example-workflows/Technique_1_Slack_Workflow_Builder/announcements.manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,113 @@ | ||
{} | ||
{ | ||
"_metadata": { | ||
"major_version": 2 | ||
}, | ||
"display_information": { | ||
"name": "Slack GitHub Actions Releaser", | ||
"description": "Sharing the latest news in channel" | ||
}, | ||
"features": { | ||
"app_home": { | ||
"messages_tab_enabled": false | ||
}, | ||
"bot_user": { | ||
"display_name": "Slack GitHub Actions Releaser" | ||
} | ||
}, | ||
"oauth_config": { | ||
"scopes": { | ||
"bot": ["chat:write", "chat:write.public", "reactions:write"] | ||
} | ||
}, | ||
"settings": { | ||
"org_deploy_enabled": true | ||
}, | ||
"workflows": { | ||
"release_announcement": { | ||
"title": "Release announcement", | ||
"description": "Share excitement around the latest changes", | ||
"input_parameters": { | ||
"properties": { | ||
"draft_channel": { | ||
"type": "slack#/types/channel_id" | ||
}, | ||
"release_notes": { | ||
"type": "string" | ||
}, | ||
"release_repository": { | ||
"type": "string" | ||
}, | ||
"release_version": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"draft_channel", | ||
"release_notes", | ||
"release_repository", | ||
"release_version" | ||
] | ||
}, | ||
"steps": [ | ||
{ | ||
"id": "0", | ||
"function_id": "slack#/functions/send_message", | ||
"inputs": { | ||
"channel_id": "{{inputs.draft_channel}}", | ||
"message": "A new release of <https://github.com/{{inputs.release_repository}}/releases/tag/{{inputs.release_version}}|{{inputs.release_repository}}@{{inputs.release_version}}> was tagged! :rocket:", | ||
"interactive_blocks": [ | ||
{ | ||
"type": "actions", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "Share" | ||
}, | ||
"action_id": "share" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "1", | ||
"function_id": "slack#/functions/open_form", | ||
"inputs": { | ||
"title": "Share the release notes", | ||
"interactivity": "{{steps.0.interactivity}}", | ||
"submit_label": "Share", | ||
"fields": { | ||
"elements": [ | ||
{ | ||
"name": "announcement_channel", | ||
"title": "Select an announcements channel", | ||
"type": "slack#/types/channel_id" | ||
} | ||
], | ||
"required": ["announcement_channel"] | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "2", | ||
"function_id": "slack#/functions/send_message", | ||
"inputs": { | ||
"channel_id": "{{steps.1.fields.announcement_channel}}", | ||
"message": "A new release of <https://github.com/{{inputs.release_repository}}/releases/tag/{{inputs.release_version}}|{{inputs.release_repository}}@{{inputs.release_version}}> was tagged! :rocket:\n```{{inputs.release_notes}}```" | ||
} | ||
}, | ||
{ | ||
"id": "3", | ||
"function_id": "slack#/functions/add_reaction", | ||
"inputs": { | ||
"message_context": "{{steps.2.message_context}}", | ||
"emoji": "tada" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
example-workflows/Technique_1_Slack_Workflow_Builder/announcements.trigger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"type": "webhook", | ||
"name": "Release webhook", | ||
"description": "Share the most recent changes", | ||
"workflow": "#/workflows/release_announcement", | ||
"inputs": { | ||
"draft_channel": { | ||
"value": "{{data.draft_channel}}" | ||
}, | ||
"release_notes": { | ||
"value": "{{data.release_notes}}" | ||
}, | ||
"release_repository": { | ||
"value": "{{data.release_repository}}" | ||
}, | ||
"release_version": { | ||
"value": "{{data.release_version}}" | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
example-workflows/Technique_1_Slack_Workflow_Builder/builds.data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"status": "done", | ||
"task": "Downstream staging rollout", | ||
"errors": "", | ||
"runner": "github-actions" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.