Commit 860e180 1 parent fb10564 commit 860e180 Copy full SHA for 860e180
File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,20 @@ jobs:
18
18
env :
19
19
GH_TOKEN : ${{ secrets.BOT_TOKEN }}
20
20
run : |
21
- elixir scripts/elixir/update_packages_list.exs
21
+ echo "Run script"
22
+ elixir scripts/elixir/update_packages_list.exs > output.txt 2> output.txt || ERROR=$? || true
23
+ echo "Set status"
24
+ STATUS=$(if [ -n "$ERROR" ]; then echo "[Failed]"; else echo "[Passed]"; fi)
25
+ echo "Status: ${STATUS}"
26
+ echo "Configure git"
22
27
git config user.name 'Membrane Bot'
23
28
git config user.email 'bot@membrane.stream'
29
+ echo "Checkout"
24
30
git checkout -B auto-update-packages-list
31
+ echo "Commit"
25
32
git add README.md
26
33
git commit -m "auto update packages list in readme" --allow-empty
34
+ echo "Push"
27
35
git push -f -u origin auto-update-packages-list
28
- gh pr create -B master -H auto-update-packages-list --title 'Auto update packages list' --body ''
36
+ echo "Create PR"
37
+ gh pr create -B master -H auto-update-packages-list --title "${STATUS} Auto update packages list" --body "Script output:\n$(cat output.txt)"
You can’t perform that action at this time.
0 commit comments