File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 14
14
run : echo y | ./scripts/prepare_newsletter.sh
15
15
env :
16
16
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17
+ - name : create branch and commit
18
+ run : |
19
+ git config user.name github-actions
20
+ git config user.email [email protected]
21
+ git push -d origin _gh_action_ci_prepare_newletter
22
+ git branch -D _gh_action_ci_prepare_newletter
23
+ git branch -B _gh_action_ci_prepare_newletter
24
+ git add .
25
+ git commit -m "new newsletter"
26
+ git push origin _gh_action_ci_prepare_newletter
17
27
- name : create pull request
18
- run : gh pr create -B source -H new_newsletter --title 'Prepare new newsletter' --body 'Created by Github action'
28
+ run : gh pr create -B source -H _gh_action_ci_prepare_newletter --title 'Prepare new newsletter' --body 'Created by Github action'
19
29
env :
20
30
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 4
4
# alongside the others, with its incremented id number.
5
5
# This script also replaces the TODOs related to the news id number.
6
6
7
- ls -l content/news
8
-
9
- find content/news/ -type d -printf " %f\n" | sort -n
7
+ set -v
10
8
11
9
read -r -d ' \n' -a news <<< ` find content/news/ -type d -printf " %f\n" | sort -n`
12
10
@@ -23,6 +21,8 @@ echo "accepted"
23
21
24
22
new_file=" content/news/$news_to_create /index.md"
25
23
26
- mkdir -p content/news/$news_to_create && cp -r newsletter-template.md $new_file
24
+ echo $new_file
25
+
26
+ mkdir -p content/news/$news_to_create && cp newsletter-template.md $new_file
27
27
28
28
sed -i ' s/{TODO_id}/' $news_to_create_simple ' /g' $new_file
You can’t perform that action at this time.
0 commit comments