File tree 2 files changed +7
-12
lines changed
2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,11 @@ jobs:
18
18
run : |
19
19
git config user.name github-actions
20
20
git config user.email [email protected]
21
- git push -d origin _gh_action_ci_prepare_newletter
22
21
git branch -D _gh_action_ci_prepare_newletter
23
22
git branch -B _gh_action_ci_prepare_newletter
24
23
git add .
25
24
git commit -m "new newsletter"
26
- git push origin _gh_action_ci_prepare_newletter
25
+ git push -f origin _gh_action_ci_prepare_newletter
27
26
- name : create pull request
28
27
run : gh pr create -B source -H _gh_action_ci_prepare_newletter --title 'Prepare new newsletter' --body 'Created by Github action'
29
28
env :
Original file line number Diff line number Diff line change 7
7
set -v
8
8
9
9
read -r -d ' \n' -a news <<< ` find content/news/ -type d -printf " %f\n" | sort -n`
10
- echo $news
11
- echo ${news[-1]}
12
10
13
- export last_news=` echo ${news[-1]} | sed -r s/0//`
14
- export news_to_create_simple=` echo $(( last_news+ 1 )) `
15
-
16
- echo $news_to_create_simple
17
- printf " %#03s" $news_to_create_simple
11
+ last_news=` echo ${news[-1]} | sed -r s/0//`
12
+ news_to_create_simple=` echo $(( last_news+ 1 )) `
18
13
19
14
printf %03d $news_to_create_simple
20
15
21
- export news_to_create=$( printf %03d $news_to_create_simple )
16
+ news_to_create=$( printf %03d $news_to_create_simple )
17
+
22
18
echo $news_to_create
23
19
read -e -p " Do you want to create issue $news_to_create ? (y/n): " choice
24
20
25
21
[[ " $choice " != [Yy]* ]] && exit
26
22
27
- echo " accepted"
23
+ echo " accepted $news_to_create "
28
24
29
- export new_file=` echo " content/news/$news_to_create /index.md" `
25
+ new_file=` echo " content/news/$news_to_create /index.md" `
30
26
31
27
echo $new_file
32
28
You can’t perform that action at this time.
0 commit comments