-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: Unknown task type: slack (config) #21
Comments
Hi, @giiita. Thank you for reporting this issue. It looks like have a problem with the workflow definition. For example: 1. Create a file for paramsWrite params to use the plugin...etc. (such as common parameters in this project) params.dig plugin:
repositories:
- https://jitpack.io
dependencies:
- com.github.szyn:digdag-slack:0.1.2
webhook_url: https://hooks.slack.com/services/X/X/X
ENV: develop NOTE: 2. Create a template for notificationtemplate.yml (no changes) ---
username: digdag
channel: "XXX"
icon_url: https://XXX
attachments:
- fallback: '[FAILED] ${env_name} ${task_name}'
color: "danger"
text: '*[FAILED]* ${env_name} `${task_name}`'
mrkdwn_in:
- text
- pretext
- fields
fields:
- title: Error Message
value: "`${error.message}`"
short: false
- title: Error Stacktrace
value: "```${error.stacktrace}```"
short: false
- title: Session Local Time
value: "${session_local_time}"
short: true
- title: Env
value: "${env_name}"
short: true 3. Some make changes workflow fileexecute.dig timezone: Asia/Tokyo
_export:
!include : params.dig # **IMPORTANT** load params from another file
target: XXX
+create-job:
sh>: "curl -s ${target} | run -"
+check-job:
sh>: "./check-job.sh - ${target}"
_error:
sh>: "curl -s ${target} | drop -"
+delete-job:
sh>: "curl -s ${target} | drop -"
_error:
slack>: template.yml Then, everything will be OK. |
Thanks. |
slack.dig
template.yml
execute.yml
But was,,,
The text was updated successfully, but these errors were encountered: