Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Oct 16, 2023
1 parent c5a041c commit 3bc1d4e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/rebar3_depup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ git config user.name "GitHub Actions"
git config user.email "[email protected]"

BRANCH=feature/rebar3-depup-updates

if git branch -a | grep "${BRANCH}" >/dev/null || true; then
# already exists
if git branch -a | grep "${BRANCH}" || true; then
# exists
exit
fi

Expand All @@ -18,10 +17,10 @@ mkdir -p "${HOME}/.config/rebar3"
echo "{plugins, [rebar3_depup]}." >"${HOME}/.config/rebar3/rebar.config"
rebar3 up

if ! git diff --exit-code 1>/dev/null; then
if ! git diff --exit-code >/dev/null; then
# there's stuff to push
TITLE="[automation] Update \`rebar.config\` versions (via \`rebar3 depup\`)"

# there's stuff to push
git add rebar.config
git commit -m "${TITLE}"
git push origin "${BRANCH}"
Expand Down

0 comments on commit 3bc1d4e

Please sign in to comment.