File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed
charts/newrelic-infrastructure Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 66 - windows/**
77 paths :
88 - ' charts/newrelic-infrastructure/values.yaml'
9- workflow_dispatch :
109
1110jobs :
11+ check-version-change :
12+ runs-on : ubuntu-latest
13+ outputs :
14+ version_changed : ${{ steps.version-check.outputs.version_changed }}
15+ new_agent_version : ${{ steps.version-check.outputs.new_agent_version }}
16+ steps :
17+ - uses : actions/checkout@v4
18+ - name : Check for version change
19+ id : version-check
20+ run : |
21+ OLD_VERSION=$(git show ${{ github.event.before }}:charts/newrelic-infrastructure/values.yaml | yq '.windowsAgent.tag')
22+ NEW_VERSION=$(yq '.windowsAgent.tag' charts/newrelic-infrastructure/values.yaml)
23+
24+ echo "Old version: $OLD_VERSION"
25+ echo "New version: $NEW_VERSION"
26+
27+ if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
28+ echo "version_changed=true" >> $GITHUB_OUTPUT
29+ else
30+ echo "version_changed=false" >> $GITHUB_OUTPUT
31+ fi
32+
33+ echo "new_agent_version=$NEW_VERSION" >> $GITHUB_OUTPUT
34+
1235 build :
1336 name : Build integration for
37+ needs : check-version-change
38+ if : needs.check-version-change.outputs.version_changed == 'true'
1439 strategy :
1540 fail-fast : true
1641 matrix :
2550 - runner : windows-2022
2651 tag : ltsc2022
2752 runs-on : ${{ matrix.windows.runner }}
28- if : contains(github.event.pull_request.title, 'update newrelic/infrastructure-agent')
2953 env :
30- AGENT_VERSION : ${{ fromJson(github.event.pull_request.body).windowsAgent.tag }}
54+ AGENT_VERSION : ${{ needs.check-version-change.outputs.new_agent_version }}
3155 steps :
3256 - uses : actions/checkout@v4
3357 - uses : actions/setup-go@v5
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ images:
4242 windowsAgent :
4343 registry : " "
4444 repository : newrelic/infrastructure-agent
45- tag : 1.63 .0
45+ tag : 1.62 .0
4646 pullPolicy : IfNotPresent
4747
4848enableWindows : false
You can’t perform that action at this time.
0 commit comments