Skip to content

Commit

Permalink
Update diff check command in version-check workflow to use 'main' bra…
Browse files Browse the repository at this point in the history
…nch and set environment variable
  • Loading branch information
hiletmis committed Nov 12, 2024
1 parent ad84810 commit 9224893
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
- name: Diff Check
id: diff-check
run: |
git diff HEAD control-branch --name-only
if [ $? -eq 1 ]; then
echo "changes_detected=true" >> "$GITHUB_OUTPUT"
git diff main control-branch --name-only
if [[ $(git diff main control-branch --name-only) ]]; then
echo "changes_detected=true" >> "$GITHUB_ENV"
fi
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down

0 comments on commit 9224893

Please sign in to comment.