Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
trying
Browse files Browse the repository at this point in the history
  • Loading branch information
jalandis committed Dec 22, 2022
1 parent f6d69e9 commit cbfce73
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/check_for_updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ if [[ "${REMOTE}" != *"${UPSTREAM}"* ]]; then
git remote add upstream "${UPSTREAM}"
fi

git fetch upstream
git pull origin main:upstream 1> /dev/null

if [[ "$(git status --porcelain)" ]]; then
LATEST_COMMIT=$(git rev-parse @{u})
OLD_COMMIT=$(git rev-parse @{u})
git pull upstream main 1> /dev/null
LATEST_COMMIT=$(git rev-parse @{u})

if [[ "${OLD_COMMIT}" != "${LATEST_COMMIT}" ]]; then
git add .
git commit -m "Github action - New upstream heroku buildpack changes - ${LATEST_COMMIT}"
gh pr create \
Expand Down

0 comments on commit cbfce73

Please sign in to comment.