Update steadybit-outpost dependencies #1
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
name: Update steadybit-outpost dependencies | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: "0 8 * * 1" | |
env: | |
HELM_REPOSITORY_CONFIG: ${{ github.workspace }}/.github/helm/repositories.yaml | |
jobs: | |
update-outpost-dependencies: | |
name: Update steadybit-outpost dependencies | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ vars.GH_APP_STEADYBIT_APP_ID }} | |
private-key: ${{ secrets.GH_APP_STEADYBIT_PRIVATE_KEY }} | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
fetch-depth: 0 | |
token: ${{ steps.app-token.outputs.token }} | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.13.3 | |
# this commit will effectively cause another run of the workflow which then actually performs the helm chart release | |
- run: | | |
cd charts/steadybit-outpost | |
helm dependency update | |
if git diff --quiet Chart.lock; then | |
echo "No changes in dependencies" | |
exit 0 | |
fi | |
npm install -g semver | |
make chart-bump-version CHART="steadybit-outpost" | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
git commit -am "chore: update helm chart dependencies" | |
git push |