Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Failed] Auto update packages list #794

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 2> output.txt || ERROR=$? || true
echo "Set status"
STATUS=$(if [ -n "$ERROR" ]; then echo "[Failed]"; else echo "[Passed]"; 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)"
Loading