Repository navigation
Conversation
A scheduled job downloads the skill from the plugin's main branch and opens a pull request when it changed, the same way the golang job bumps the Go version.
| env: | ||
| GITHUB_TOKEN: ${{ steps.credentials.outputs.token }} | ||
| VERSION: ${{ steps.version.outputs.latest }} | ||
| skill: |
There was a problem hiding this comment.
note: This job is a copy of the golang job above. It uses the same daily schedule, token, labels, and milestone, so there's nothing new to maintain.
| token: ${{ steps.credentials.outputs.token }} | ||
| - name: Download the latest skill | ||
| run: | | ||
| curl -fsSL "https://raw.githubusercontent.com/slackapi/slack-skills-plugin/main/skills/slack-cli/SKILL.md" -o cmd/skill/SKILL.md |
There was a problem hiding this comment.
note: We download from the plugin's main branch because that's what npx skills installs. The -f flag fails the step on a 404 instead of writing an error page into SKILL.md.
| exit 0 | ||
| fi | ||
| git commit --all -m "chore: sync the slack-cli skill from slack-skills-plugin" | ||
| git push -u origin chore-sync-skill |
There was a problem hiding this comment.
note: Like the golang job, this push fails if an earlier sync PR is still open. A failed run means a sync PR is waiting to merge.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #736 +/- ##
==========================================
- Coverage 78.18% 78.17% -0.01%
==========================================
Files 240 240
Lines 18166 18166
==========================================
- Hits 14203 14202 -1
- Misses 3963 3964 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
This pull request keeps the skill printed by
slack skillcurrent for maintainers, without anyone copying it by hand. A daily job downloads theslack-cliskill from themainbranch of slackapi/slack-skills-plugin and opens a pull request when it changed.It's a copy of the
golangjob in the same workflow, with the same schedule, token, labels, and milestone.mainis also the branchnpx skillsinstalls the skill from.Testing
curland confirm the file matchescmd/skill/SKILL.mdtoday, so the first run exits with "No changes to commit".curlat a missing path and confirm it fails the step instead of writing an error page into the skill file.workflow_dispatchand confirm the "Sync the agent skill" job passes.Notes
golangjob, a second change before the first sync PR merges makes the push fail until it does.Requirements