Skip to content

Commit 95c08e9

Browse files
authored
fix for australia and europe (#454)
1 parent 15e61a8 commit 95c08e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ runs:
237237
rm --force "$path"
238238
fi
239239
240-
- if: ${{ inputs.command == 'plan' && inputs.upload-plan == 'true' && github.server_url == 'https://github.com' }}
240+
- if: ${{ inputs.command == 'plan' && inputs.upload-plan == 'true' && (github.server_url == 'https://github.com' || contains(github.server_url, '.ghe.com')) }}
241241
id: upload
242242
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
243243
with:
@@ -246,7 +246,7 @@ runs:
246246
retention-days: ${{ inputs.retention-days }}
247247
overwrite: true
248248

249-
- if: ${{ inputs.command == 'plan' && inputs.upload-plan == 'true' && github.server_url != 'https://github.com' }}
249+
- if: ${{ inputs.command == 'plan' && inputs.upload-plan == 'true' && !(github.server_url == 'https://github.com' || contains(github.server_url, '.ghe.com')) }}
250250
id: upload-v3
251251
uses: actions/upload-artifact@c24449f33cd45d4826c6702db7e49f7cdb9b551d # v3.2.1-node20
252252
with:

0 commit comments

Comments
 (0)