Updatecli minor dependency updates #11
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: Updatecli minor dependency updates | |
on: | |
workflow_dispatch: | |
schedule: | |
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
- cron: 0 15 1 * * # The first of each month at 10am EST | |
permissions: {} | |
jobs: | |
updatecli: | |
runs-on: ubuntu-latest | |
permissions: | |
# required to write to the repo | |
contents: write | |
# required to open a pr with updatecli changes | |
pull-requests: write | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: configure git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Get current date | |
id: date | |
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | |
- name: create branch for helm version updates | |
run: | | |
git checkout -b "helm-version-${{ steps.date.outputs.date }}" | |
- name: install updatecli in the runner | |
uses: updatecli/updatecli-action@v2 | |
- name: run updatecli in apply mode | |
run: | | |
updatecli apply --config .github/updatecli/manifest-minor.yaml | |
git commit -am "helm-version-${{ steps.date.outputs.date }}" | |
git push --set-upstream origin "helm-version-${{ steps.date.outputs.date }}" | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: create pr | |
run: | | |
git checkout "helm-version-${{ steps.date.outputs.date }}" | |
gh pr create --base main --title "helm-version-bump-${{ steps.date.outputs.date }}" -b "please run helm-docs locally to update chart readmes" --label dependencies | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |