Skip to content

Commit

Permalink
fix update packages list action
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-hek committed Apr 23, 2024
1 parent fb10564 commit 667843a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/update-packages-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@ jobs:
env:
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
run: |
elixir scripts/elixir/update_packages_list.exs
echo "Run script"
elixir scripts/elixir/update_packages_list.exs > output.txt; RESULT=$?
echo "Set status"
STATUS=$(if [ $RESULT = 0 ]; then echo "[Passed]"; else; echo "[Failed]"; fi)
echo "Status: ${STATUS}"
echo "Configure git"
git config user.name 'Membrane Bot'
git config user.email '[email protected]'
echo "Checkout"
git checkout -B auto-update-packages-list
echo "Commit"
git add README.md
git commit -m "auto update packages list in readme" --allow-empty
echo "Push"
git push -f -u origin auto-update-packages-list
gh pr create -B master -H auto-update-packages-list --title 'Auto update packages list' --body ''
echo "Create PR"
gh pr create -B master -H auto-update-packages-list --title "${STATUS} Auto update packages list" --body "Script output:\n$(cat output.txt)"

0 comments on commit 667843a

Please sign in to comment.