Update packages by aqua-registry-updater #50719
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 packages by aqua-registry-updater | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: "*/10 * * * *" | |
env: | |
AQUA_GLOBAL_CONFIG: ${{ github.workspace }}/aqua-all.yaml | |
AQUA_LOG_COLOR: always | |
AQUA_CONFIG: ${{ github.workspace }}/aqua/update.yaml | |
jobs: | |
update-pkgs: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1 | |
with: | |
aqua_version: v2.36.1 | |
policy_allow: "true" | |
aqua_opts: -l -a | |
env: | |
AQUA_GITHUB_TOKEN: ${{github.token}} | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | |
with: | |
app_id: ${{secrets.APP_ID}} | |
private_key: ${{secrets.APP_PRIVATE_KEY}} | |
repositories: >- | |
["${{github.event.repository.name}}"] | |
permissions: >- | |
{ | |
"contents": "write", | |
"pull_requests": "write" | |
} | |
- run: aqua-registry-updater | |
env: | |
AQUA_REGISTRY_UPDATER_CONTAINER_REGISTRY_TOKEN: ${{github.token}} | |
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}} |