Skip to content

Commit e9d6c7b

Browse files
check for git diff outpout
1 parent b88914c commit e9d6c7b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,12 @@ jobs:
149149
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
150150

151151
- name: Check git diff
152+
id: git_diff
152153
run: |
153-
[ -z "$(git diff .dappnode_profile)" ] && { echo "nothing to commit"; exit 0; }
154+
[ -z "$(git diff .dappnode_profile)" ] && echo '::set-output name=HAS_CHANGED::true' || echo '::set-output name=HAS_CHANGED::false'
154155
155156
- name: Create Pull Request
157+
if: steps.git_diff.HAS_CHANGED = 'true'
156158
uses: peter-evans/create-pull-request@v3
157159
with:
158160
add-paths: ".dappnode_profile"

0 commit comments

Comments
 (0)