Skip to content

Commit 62eca91

Browse files
committed
ci: update default next meetup workflow, replace claude with bash script
1 parent d28fa38 commit 62eca91

1 file changed

Lines changed: 38 additions & 16 deletions

File tree

.github/workflows/default-next-meetup.yml

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55

66
permissions:
77
contents: write
8-
actions: write
9-
id-token: write
108

119
jobs:
1210
default-next-meetup:
@@ -15,21 +13,45 @@ jobs:
1513
- name: Checkout
1614
uses: actions/checkout@v4
1715

18-
- name: Setup Node.js
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: 22
22-
cache: npm
23-
24-
- name: Install dependencies
25-
run: npm ci
16+
- name: Reset Next Meetup section to default
17+
run: |
18+
cat > src/app/components/meetup/meetup.component.html <<'EOF'
19+
<section id="next-meetup" class="bg-(--surface) px-4">
20+
<div class="mx-auto flex max-w-5xl flex-col items-center gap-10 md:flex-row-reverse">
21+
<div class="w-full md:w-1/2">
22+
<img
23+
ngSrc="/images/homepage/DefaultNextMeetup.jpg"
24+
alt="Next Meetup"
25+
width="1440"
26+
height="1440"
27+
class="w-full rounded-(--radius) object-cover shadow-lg"
28+
/>
29+
</div>
30+
<div class="flex w-full flex-col items-center gap-4 text-center md:w-1/2 md:items-start md:text-left">
31+
<div class="py-16">
32+
<h2>{{ 'nextMeetup.title' | transloco }}</h2>
33+
<p class="mb-6">{{ 'nextMeetup.description' | transloco }}</p>
34+
<a
35+
id="meetup-link"
36+
rel="me noopener"
37+
target="_blank"
38+
href="https://www.meetup.com/python-catania/"
39+
role="button"
40+
aria-label="Meetup"
41+
class="inline-flex cursor-pointer items-center justify-center gap-2 rounded-(--radius) border-2 border-(--color-primary) bg-(--color-primary) px-4 py-2 text-base font-semibold text-white no-underline transition-colors hover:border-(--color-primary-hover) hover:bg-(--color-primary-hover) hover:text-white [&_svg]:shrink-0"
42+
>
43+
<app-icon-meetup />{{ 'nextMeetup.join' | transloco }}</a
44+
>
45+
</div>
46+
</div>
47+
</div>
48+
</section>
49+
EOF
2650
27-
- name: Run default-next-meetup skill
28-
uses: anthropics/claude-code-action@v1
29-
with:
30-
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
31-
prompt: "/default-next-meetup"
32-
claude_args: '--allowedTools "Bash,Read,Edit,Write,Glob,Grep"'
51+
jq 'del(.nextMeetup.date)' public/i18n/it.json > /tmp/it.json \
52+
&& mv /tmp/it.json public/i18n/it.json
53+
jq 'del(.nextMeetup.date)' public/i18n/en.json > /tmp/en.json \
54+
&& mv /tmp/en.json public/i18n/en.json
3355
3456
- name: Commit and push changes
3557
env:

0 commit comments

Comments
 (0)