Skip to content

Commit

Permalink
Fix alloy modules checking action (#1058)
Browse files Browse the repository at this point in the history
Also fix some yaml lint issues

Signed-off-by: Pete Wall <[email protected]>
  • Loading branch information
petewall authored Jan 7, 2025
1 parent be2cb8a commit 3a611a2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/check-for-alloy-modules-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion charts/k8s-monitoring-v1/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ metrics:
scrapeInterval: ""

# -- The list of namespaces to include in autodiscovery. If empty, all namespaces are included.
# @section -- Metrics Job: Auto-Discovery
# @section -- Metrics Job: Auto-Discovery
namespaces: []

# -- The list of namespaces to exclude from autodiscovery.
Expand Down
1 change: 1 addition & 0 deletions charts/k8s-monitoring/docs/examples/auth/oauth2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This example demonstrates how to use OAuth2 for authentication.
## Values

```yaml
---
cluster:
name: oauth2-auth-example

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
cluster:
name: oauth2-auth-example

Expand Down

0 comments on commit 3a611a2

Please sign in to comment.