Update dependency cli/cli to v2.42.0 #238
Workflow file for this run
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 aqua checksum | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
paths: | |
- "common/config/aquaproj-aqua/*" | |
- ".github/workflows/update-checksum.yaml" | |
workflow_dispatch: | |
jobs: | |
update-aqua-checksum: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.local/share/aquaproj-aqua | |
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('**/aqua.yaml')}} | |
restore-keys: | | |
v1-aqua-installer-${{runner.os}}-${{runner.arch}}- | |
- uses: aquaproj/aqua-installer@v2.2.0 | |
with: | |
aqua_version: v2.21.3 # renovate: depName=aquaproj/aqua | |
working_directory: common/config/aquaproj-aqua | |
- run: aqua update-checksum -deep -prune | |
working-directory: common/config/aquaproj-aqua | |
- run: git diff --exit-code | |
id: diff | |
continue-on-error: true | |
- name: Commit changes | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "actions@github.com" | |
git add -A | |
git commit --author . -m "chore(aqua): update checksum" | |
git push origin | |
if: steps.diff.outcome == 'failure' | |
- run: aqua install --all --only-link | |
approve: | |
runs-on: ubuntu-latest | |
needs: update-aqua-checksum | |
if: "github.event.pull_request.user.login == 'renovate[bot]' && contains(github.event.pull_request.body, ' **Automerge**: Enabled.')" | |
steps: | |
- uses: actions/checkout@v4 | |
- run: gh pr review ${{ github.event.number }} --approve | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |