Skip to content

Commit 028d46f

Browse files
committed
fix update packages list action
1 parent fb10564 commit 028d46f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/update-packages-list.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,20 @@ jobs:
1818
env:
1919
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
2020
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"
2227
git config user.name 'Membrane Bot'
2328
git config user.email 'bot@membrane.stream'
29+
echo "Checkout"
2430
git checkout -B auto-update-packages-list
31+
echo "Commit"
2532
git add README.md
2633
git commit -m "auto update packages list in readme" --allow-empty
34+
echo "Push"
2735
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-lis --label no-changelog --title "${STATUS} Auto update packages list" --body $'Script output:\n```\n'$(cat output.txt)$'\n```'

0 commit comments

Comments
 (0)