Skip to content

Commit

Permalink
Merge pull request oracle#641 from jerboaa/ci-don-t-update-while-reading
Browse files Browse the repository at this point in the history
[CI] Don't update file while reading it
  • Loading branch information
zakkak authored Dec 18, 2023
2 parents 9cd585d + 0f8d681 commit e654b69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/base-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ jobs:
if: startsWith(matrix.os-name, 'windows')
shell: bash
run: |
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Mandrel-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Mandrel-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json.new
mv ~/.docker/config.json.new ~/.docker/config.json
- name: Change quarkus.version for Quarkus 2.2 to make mandrel-integration-test not apply quarkus_main.patch
if: startsWith(matrix.os-name, 'windows')
# See https://github.com/Karm/mandrel-integration-tests/pull/64
Expand Down Expand Up @@ -610,7 +611,8 @@ jobs:
- name: Update Docker Client User Agent
shell: bash
run: |
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Mandrel-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Mandrel-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json.new
mv ~/.docker/config.json.new ~/.docker/config.json
- name: Build with Maven
run: |
cmd.exe /c "call `"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat`" && set > %temp%\vcvars64.txt"
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ jobs:
if: "!startsWith(matrix.os-name, 'windows')"
shell: bash
run: |
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Mandrel-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Mandrel-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json.new
mv ~/.docker/config.json.new ~/.docker/config.json
- name: Change quarkus.version for Quarkus 2.2 to make mandrel-integration-test not apply quarkus_main.patch
if: "!startsWith(matrix.os-name, 'windows')"
# See https://github.com/Karm/mandrel-integration-tests/pull/64
Expand Down Expand Up @@ -696,7 +697,8 @@ jobs:
tar -xzvf jdk.tgz -C ${GRAALVM_HOME} --strip-components=1
- name: Update Docker Client User Agent
run: |
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Mandrel-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Mandrel-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json.new
mv ~/.docker/config.json.new ~/.docker/config.json
- name: Install gdb
run: |
sudo apt-get update -y
Expand Down Expand Up @@ -735,4 +737,4 @@ jobs:
if: failure()
with:
name: test-reports-mandrel-it-${{ needs.get-test-matrix.outputs.artifacts-suffix }}
path: 'test-reports-mandrel-it.tgz'
path: 'test-reports-mandrel-it.tgz'

0 comments on commit e654b69

Please sign in to comment.