-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix alloy modules checking action (#1058)
Also fix some yaml lint issues Signed-off-by: Pete Wall <[email protected]>
- Loading branch information
Showing
4 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -8,11 +8,11 @@ on: | |
- cron: '0 0 * * *' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/check-for-dependency-updates.yaml' | ||
- .github/workflows/check-for-alloy-modules-updates.yaml | ||
|
||
permissions: | ||
contents: "write" | ||
pull-requests: "write" | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
check-for-alloy-modules-updates: | ||
|
@@ -24,14 +24,12 @@ jobs: | |
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Regenerate files | ||
working-directory: charts/k8s-monitoring | ||
run: | | ||
rm -f vendir.lock.yml | ||
make clean build | ||
touch vendir.yml | ||
make vendir.lock.yml clean build | ||
- name: Check for changes in generated files | ||
id: check-for-changes | ||
|
@@ -41,16 +39,23 @@ jobs: | |
echo "changed=true" >> "${GITHUB_OUTPUT}" | ||
fi | ||
- name: Get details | ||
id: get-details | ||
if: steps.check-for-changes.outputs.changed == 'true' | ||
working-directory: charts/k8s-monitoring | ||
run: | | ||
echo "sha=$(yq '.directories[0].contents[0].git.sha' vendir.lock.yml)" >> "${GITHUB_OUTPUT}" | ||
- name: Create pull request | ||
if: steps.check-for-changes.outputs.changed == 'true' | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
title: "[dependency] Update Alloy Modules" | ||
body: "Update Alloy Modules to the latest version" | ||
body: "Update Alloy Modules to the latest version (SHA: ${{ steps.get-details.outputs.sha }})" | ||
base: main | ||
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" | ||
committer: "GitHub <[email protected]>" | ||
commit-message: "Update Alloy Modules to the latest version" | ||
committer: GitHub <[email protected]> | ||
commit-message: "Update Alloy Modules to the latest version (SHA: ${{ steps.get-details.outputs.sha }})" | ||
labels: dependencies | ||
branch: chore/update-alloy-modules" | ||
branch: chore/update-alloy-modules | ||
delete-branch: true |
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
cluster: | ||
name: oauth2-auth-example | ||
|
||
|