We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af6754 commit f086dadCopy full SHA for f086dad
.github/workflows/update-oss-licenses-dist.yml
@@ -36,12 +36,12 @@ jobs:
36
- name: Compare files
37
id: compare-files
38
run: |
39
- if (-not (git diff --exit-code origin/main)) {
40
- Write-Output "files_changed=true" | Out-File -FilePath $env:GITHUB_ENV -Append
41
- } else {
42
- Write-Output "files_changed=false" | Out-File -FilePath $env:GITHUB_ENV -Append
43
- }
44
- shell: pwsh
+ if ! git diff --exit-code origin/main; then
+ echo "files_changed=true" >> $GITHUB_ENV
+ else
+ echo "files_changed=false" >> $GITHUB_ENV
+ fi
+ shell: bash
45
46
- name: Create Pull Request
47
if: env.files_changed == 'true'
0 commit comments