Skip to content

Set Next Meetup

Set Next Meetup #4

name: Set Next Meetup
on:
workflow_dispatch:
inputs:
meetup_link:
description: 'Meetup event URL (e.g. https://www.meetup.com/python-catania/events/123456789/)'
required: true
type: string
permissions:
contents: write
actions: write
id-token: write
jobs:
set-next-meetup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Install ImageMagick
run: sudo apt-get update && sudo apt-get install -y imagemagick
- name: Run set-next-meetup skill
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: "/set-next-meetup ${{ inputs.meetup_link }}"
claude_args: '--allowedTools "Bash,Read,Edit,Write,WebFetch,Glob,Grep"'
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if [ -n "$(git status --porcelain)" ]; then
git add -A
git commit -m "chore: set next meetup event"
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
gh workflow run deploy.yml --ref "${GITHUB_REF_NAME}" -f sha="$(git rev-parse HEAD)"
else
echo "No changes to commit"
fi