-
Notifications
You must be signed in to change notification settings - Fork 2k
Update renovate PR's in github workflow #8427
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
df5d813
Run code gen on renovate PR's when go dependecies update
pdabelf5 76ee6d0
Remove enterprise renovate config
pdabelf5 61f6ad7
Update .github/workflows/renovate-build.yml
pdabelf5 0db35f1
Update .github/workflows/renovate-build.yml
pdabelf5 ba3453a
Update artifactory endpoint
pdabelf5 7ba4d97
remove quotes from variable assignment
pdabelf5 9c655df
Merge branch 'main' into renovate/reconfigure
pdabelf5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Run build for renovate PRs | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
permissions: | ||
contents: read | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
concurrency: | ||
group: ${{ github.ref_name }}-renovate | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check: | ||
name: Check for changes | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
generate: ${{ steps.filter.outputs.generate }} | ||
permissions: | ||
pull-requests: read | ||
if: ${{ github.actor == 'renovate[bot]' }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
|
||
- name: Check for changes | ||
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | ||
id: filter | ||
with: | ||
filters: | | ||
generate: | ||
- go.mod | ||
- go.sum | ||
|
||
build: | ||
name: Build for renovate PRs | ||
runs-on: ubuntu-24.04 | ||
needs: check | ||
permissions: | ||
contents: write | ||
if: ${{ needs.check.outputs.generate == 'true' }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Configure GOPROXY | ||
id: goproxy | ||
run: | | ||
GOPROXY_VALUE=https://proxy.golang.org,direct" | ||
pdabelf5 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
if [ "${{ github.ref_name }}" = "${{ github.event.repository.default_branch }}" ] || [[ "${{ github.ref_name }}" =~ "release-" ]]; then | ||
echo "GOPROXY_VALUE=${{ secrets.ARTIFACTORY_ENDPOINT }}" | ||
pdabelf5 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
fi | ||
echo "GOPROXY=${GOPROXY_VALUE}" >> $GITHUB_ENV | ||
|
||
- name: Setup Golang Environment | ||
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | ||
with: | ||
go-version-file: go.mod | ||
|
||
# go mod tidy can be removed once https://github.com/renovatebot/renovate/issues/12999 is implemented | ||
- name: Update files for renovate | ||
run: | | ||
make update-crds | ||
make update-codegen | ||
|
||
- name: Commit changes | ||
id: commit | ||
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1 | ||
with: | ||
commit_message: "Update files for renovate" | ||
commit_author: "renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.