Combine dependency updates
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
This commit is contained in:
parent
b99140d3f4
commit
c6d0444dfa
118
.github/workflows/check-for-dependency-updates.yaml
vendored
118
.github/workflows/check-for-dependency-updates.yaml
vendored
@ -16,7 +16,7 @@ env:
|
|||||||
UPDATECLI_GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
UPDATECLI_GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
updateLoki:
|
updateVersions:
|
||||||
name: Update the Loki subchart
|
name: Update the Loki subchart
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Install Updatecli
|
- name: Install Updatecli
|
||||||
uses: updatecli/updatecli-action@v2
|
uses: updatecli/updatecli-action@v2
|
||||||
|
|
||||||
- name: Run Updatecli
|
- name: Run Updatecli for Loki
|
||||||
id: update-loki
|
id: update-loki
|
||||||
run: |
|
run: |
|
||||||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/loki.yaml
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/loki.yaml
|
||||||
@ -34,31 +34,7 @@ jobs:
|
|||||||
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Run Updatecli for Alloy
|
||||||
if: steps.update-loki.outputs.changed == 'true'
|
|
||||||
uses: peter-evans/create-pull-request@v5
|
|
||||||
with:
|
|
||||||
title: "[dependency] Update the Loki subchart"
|
|
||||||
body: "Updates the Loki subchart"
|
|
||||||
base: main
|
|
||||||
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
|
||||||
committer: "GitHub <noreply@github.com>"
|
|
||||||
commit-message: Update loki
|
|
||||||
labels: dependencies
|
|
||||||
branch: chore/update-loki
|
|
||||||
delete-branch: true
|
|
||||||
|
|
||||||
updateGrafanaAlloy:
|
|
||||||
name: Update the Grafana Alloy subchart
|
|
||||||
runs-on: "ubuntu-latest"
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install Updatecli
|
|
||||||
uses: updatecli/updatecli-action@v2
|
|
||||||
|
|
||||||
- name: Run Updatecli
|
|
||||||
id: update-grafana-alloy
|
id: update-grafana-alloy
|
||||||
run: |
|
run: |
|
||||||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/alloy.yaml
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/alloy.yaml
|
||||||
@ -66,31 +42,7 @@ jobs:
|
|||||||
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Run Updatecli for Mimir
|
||||||
if: steps.update-grafana-alloy.outputs.changed == 'true'
|
|
||||||
uses: peter-evans/create-pull-request@v5
|
|
||||||
with:
|
|
||||||
title: "[dependency] Update the Grafana Alloy subchart"
|
|
||||||
body: "Updates the Grafana Alloy subchart"
|
|
||||||
base: main
|
|
||||||
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
|
||||||
committer: "GitHub <noreply@github.com>"
|
|
||||||
commit-message: Update Grafana Alloy
|
|
||||||
labels: dependencies
|
|
||||||
branch: chore/update-grafana-alloy
|
|
||||||
delete-branch: true
|
|
||||||
|
|
||||||
updateMimirDistributed:
|
|
||||||
name: Update the Mimir Distributed subchart
|
|
||||||
runs-on: "ubuntu-latest"
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install Updatecli
|
|
||||||
uses: updatecli/updatecli-action@v2
|
|
||||||
|
|
||||||
- name: Run Updatecli
|
|
||||||
id: update-mimir-distributed
|
id: update-mimir-distributed
|
||||||
run: |
|
run: |
|
||||||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/mimir-distributed.yaml
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/mimir-distributed.yaml
|
||||||
@ -98,31 +50,7 @@ jobs:
|
|||||||
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Run Updatecli for Tempo
|
||||||
if: steps.update-mimir-distributed.outputs.changed == 'true'
|
|
||||||
uses: peter-evans/create-pull-request@v5
|
|
||||||
with:
|
|
||||||
title: "[dependency] Update the Mimir Distributed subchart"
|
|
||||||
body: "Updates the Mimir Distributed subchart"
|
|
||||||
base: main
|
|
||||||
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
|
||||||
committer: "GitHub <noreply@github.com>"
|
|
||||||
commit-message: Update Mimir Distributed
|
|
||||||
labels: dependencies
|
|
||||||
branch: chore/update-mimir-distributed
|
|
||||||
delete-branch: true
|
|
||||||
|
|
||||||
updateTempoDistributed:
|
|
||||||
name: Update the Tempo Distributed subchart
|
|
||||||
runs-on: "ubuntu-latest"
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install Updatecli
|
|
||||||
uses: updatecli/updatecli-action@v2
|
|
||||||
|
|
||||||
- name: Run Updatecli
|
|
||||||
id: update-tempo-distributed
|
id: update-tempo-distributed
|
||||||
run: |
|
run: |
|
||||||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/tempo-distributed.yaml
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/tempo-distributed.yaml
|
||||||
@ -130,31 +58,7 @@ jobs:
|
|||||||
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Run Updatecli for Minio
|
||||||
if: steps.update-tempo-distributed.outputs.changed == 'true'
|
|
||||||
uses: peter-evans/create-pull-request@v5
|
|
||||||
with:
|
|
||||||
title: "[dependency] Update the Tempo Distributed subchart"
|
|
||||||
body: "Updates the tempo Distributed subchart"
|
|
||||||
base: main
|
|
||||||
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
|
||||||
committer: "GitHub <noreply@github.com>"
|
|
||||||
commit-message: Update Tempo Distributed
|
|
||||||
labels: dependencies
|
|
||||||
branch: chore/update-tempo-distributed
|
|
||||||
delete-branch: true
|
|
||||||
|
|
||||||
updateMinio:
|
|
||||||
name: Update the Minio subchart
|
|
||||||
runs-on: "ubuntu-latest"
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install Updatecli
|
|
||||||
uses: updatecli/updatecli-action@v2
|
|
||||||
|
|
||||||
- name: Run Updatecli
|
|
||||||
id: update-minio
|
id: update-minio
|
||||||
run: |
|
run: |
|
||||||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/minio.yaml
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/minio.yaml
|
||||||
@ -163,15 +67,15 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Create pull request
|
||||||
if: steps.update-minio.outputs.changed == 'true'
|
if: steps.update-loki.outputs.changed == 'true' || steps.update-grafana-alloy.outputs.changed == 'true' || steps.update-mimir-distributed.outputs.changed == 'true' || steps.update-tempo-distributed.outputs.changed == 'true' || steps.update-minio.outputs.changed == 'true'
|
||||||
uses: peter-evans/create-pull-request@v5
|
uses: peter-evans/create-pull-request@v5
|
||||||
with:
|
with:
|
||||||
title: "[dependency] Update the Minio subchart"
|
title: "[dependency] Update the subcharts"
|
||||||
body: "Updates the Minio subchart"
|
body: "Updates the subcharts"
|
||||||
base: main
|
base: main
|
||||||
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
||||||
committer: "GitHub <noreply@github.com>"
|
committer: "GitHub <noreply@github.com>"
|
||||||
commit-message: Update minio
|
commit-message: Update dependencies
|
||||||
labels: dependencies
|
labels: dependencies
|
||||||
branch: chore/update-minio
|
branch: chore/update-dependencies
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user