Skip to content

Commit 6dca493

Browse files
committed
chore: ci to trigger the script for a new newsletter
1 parent 3fa633a commit 6dca493

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Prepare a new newsletter
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
prepare_new_newsletter:
8+
runs-on: ubuntu-latest
9+
env:
10+
# https://github.com/crazy-max/ghaction-github-pages/issues/1#issuecomment-623202206
11+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@v2
14+
- run: ./zola --version
15+
- name: copy template and adapt dates and ids.
16+
run: echo y | ./scripts/prepare_newsletter.sh
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- name: create pull request
20+
run: gh pr create -B source -H new_newsletter --title 'Prepare new newsletter' --body 'Created by Github action'
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)