We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6992da commit 8f0064eCopy full SHA for 8f0064e
.github/workflows/create-newsletter.yaml
@@ -28,8 +28,10 @@ jobs:
28
sed -i "s/{{\s*NEWSLETTER_DEADLINE\s*}}/${{ env.NEWSLETTER_DEADLINE }}/g" index.md
29
sed -i "s/{{\s*NEWSLETTER_COUNTER\s*}}/${{ env.NEWSLETTER_COUNTER }}/g" index.md
30
# Create a dir in content/news with the counter with 3 digits as name
31
- mkdir -p content/news/$(printf "%03d" ${{ env.NEWSLETTER_COUNTER }})
32
- mv index.md content/news/$(printf "%03d" ${{ env.NEWSLETTER_COUNTER }})
+ destination="content/news/$(printf "%03d" ${{ env.NEWSLETTER_COUNTER }})"
+ mkdir -p $destination
33
+ mv index.md $destination/index.md
34
+ git status
35
- name: Commit and push changes
36
uses: EndBug/add-and-commit@v9
37
with:
0 commit comments