Skip to content

Commit

Permalink
merged the upstream changes into new branch
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-wildlife authored Aug 24, 2024
1 parent ec020ca commit 1ba7619
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/check-upstream-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,23 @@ jobs:
with:
fetch-depth: 0

- name: Set up git config
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
- name: Fetch upstream
run: |
git remote add upstream https://github.com/HimaxWiseEyePlus/Seeed_Grove_Vision_AI_Module_V2.git
git fetch upstream
git checkout main
- name: Check for updates
id: check_updates
run: |
git fetch upstream main
UPSTREAM_COMMITS=$(git rev-list HEAD..upstream/main --count)
if [ "$UPSTREAM_COMMITS" -gt 0 ]; then
git merge --no-commit --no-ff upstream/main || true
if [ "$(git diff --name-only)" != "" ]; then
echo "status=needs_update" >> $GITHUB_OUTPUT
else
echo "status=up_to_date" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 1ba7619

Please sign in to comment.