-
Notifications
You must be signed in to change notification settings - Fork 5k
[CI] UpdateCLI: Added go mod tidy #41170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,22 +18,37 @@ jobs: | |
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| file: ['bump-golang.yml', 'bump-golang-7.17.yml'] | ||
| file: ["bump-golang.yml", "bump-golang-7.17.yml"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Updatecli in the runner | ||
| uses: updatecli/updatecli-action@6b8881a17fc8038e884ec94ff72a49e8e8a4069f # v0.76.1 | ||
|
|
||
| - name: Run Updatecli in Apply mode | ||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: .go-version | ||
|
Comment on lines
+28
to
+30
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this cause any issues if the golang-bump happens afterwards? Let's say current version is 1.22.7 and the upcoming one is
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question. It's better to install the new version of go.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hence, this change will not install the new version if that's the pre-req
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updatecli can neither execute a specified target nor run a subset of targets. I came up with one solution that I don't like.
Please check the updates. Do you have any ideas on how can we make it in one execution?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. First, can you explain the motivation for running
As far as I see there is a parameter called
|
||
|
|
||
| - name: Run Updatecli in local mode | ||
| run: updatecli --experimental apply --commit false --push false --config .github/workflows/updatecli.d/${{ matrix.file }} --values .github/workflows/updatecli.d/values.d/scm.yml | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: .go-version | ||
|
|
||
| - run: go mod tidy | ||
|
|
||
| - name: Run Updatecli in push mode | ||
| run: updatecli --experimental apply --config .github/workflows/updatecli.d/${{ matrix.file }} --values .github/workflows/updatecli.d/values.d/scm.yml | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - if: ${{ failure() }} | ||
| uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0 | ||
| with: | ||
| channel-id: '#ingest-notifications' | ||
| channel-id: "#ingest-notifications" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
| payload: | | ||
| { | ||
| "text": "${{ env.SLACK_MESSAGE }}", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.