File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,18 @@ jobs:
2828 if ${{ github.event.forced }} || ${{ github.event.before == '0000000000000000000000000000000000000000' }}; then
2929 PUSH_TYPE='branch'
3030 fi
31- echo $PUSH_TYPE
31+ echo "Push type: $PUSH_TYPE"
3232 echo "push_type=$PUSH_TYPE" >> $GITHUB_OUTPUT
3333
3434 - name : Get changed files
3535 id : changed-files
3636 run : |
37- echo "Getting changed files from ${{ github.event.before }} to ${{ github.event.after }}"
38- if ${{ github.event.forced }} || ${{ github.event.before == '0000000000000000000000000000000000000000' }}; then
37+ if ${{ steps.changed-files.outputs.changed_files == 'branch'}}; then
3938 echo "First commit on feature branch or force push - getting all changed files compared to 'develop'"
4039 git fetch origin develop
4140 CHANGED_FILES=$(git diff --name-only remotes/origin/develop ${{ github.event.after }} | xargs)
4241 else
42+ echo "Getting changed files from ${{ github.event.before }} to ${{ github.event.after }}"
4343 CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs)
4444 fi
4545 for file in $CHANGED_FILES; do
You can’t perform that action at this time.
0 commit comments