-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Passed] Auto update packages list (#795)
* fix update packages list action * update packages list * auto update packages list in readme --------- Co-authored-by: Mateusz Front <[email protected]> Co-authored-by: Membrane Bot <[email protected]>
- Loading branch information
1 parent
fb10564
commit eae44ae
Showing
3 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,22 @@ 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 | ||
cat output.txt | ||
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 --label no-changelog --title "${STATUS} Auto update packages list" --body-file output.txt \ | ||
|| gh pr edit auto-update-packages-list --title "${STATUS} Auto update packages list" --body-file output.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters