Repository navigation
ci: sync the slack-cli skill from slack-skills-plugin each day #736
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,3 +87,39 @@ jobs: | |
| env: | ||
| GITHUB_TOKEN: ${{ steps.credentials.outputs.token }} | ||
| VERSION: ${{ steps.version.outputs.latest }} | ||
| skill: | ||
| name: Sync the agent skill | ||
| runs-on: ubuntu-latest | ||
| if: github.event_name != 'pull_request' | ||
| permissions: | ||
| contents: none # Permissions are set with an application token | ||
| steps: | ||
| - name: Gather credentials | ||
| id: credentials | ||
| uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 | ||
| with: | ||
| client-id: ${{ secrets.GH_APP_CLIENT_ID_RELEASER }} | ||
| private-key: ${{ secrets.GH_APP_PRIVATE_KEY_RELEASER }} | ||
| - name: Checkout the repo | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: true | ||
| ref: main | ||
| 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 | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: We download from the plugin's |
||
| - name: Open a change request | ||
| run: | | ||
| git config --global user.name 'github-actions[bot]' | ||
| git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||
| git checkout -b chore-sync-skill | ||
| if git diff --quiet; then | ||
| echo "No changes to commit, exiting." | ||
| exit 0 | ||
| fi | ||
| git commit --all -m "chore: sync the slack-cli skill from slack-skills-plugin" | ||
| git push -u origin chore-sync-skill | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: Like the |
||
| gh pr create --title "chore: sync the slack-cli skill from slack-skills-plugin" --body "Automatic update to the latest \`slack-cli\` skill in [slackapi/slack-skills-plugin](https://github.com/slackapi/slack-skills-plugin/blob/main/skills/slack-cli/SKILL.md)" --milestone "Next Release" --label "code health" --label "semver:patch" | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.credentials.outputs.token }} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: This job is a copy of the
golangjob above. It uses the same daily schedule, token, labels, and milestone, so there's nothing new to maintain.