Skip to content

auto-update-packages #2764

auto-update-packages

auto-update-packages #2764

#
# This workflow was created automatically from the `auto-update-template.yml` by running `make -C .github auto-update-workflow`
# DO NOT EDIT THIS WORKFLOW
#
name: "auto-update-packages"
on:
workflow_dispatch:
schedule:
# See cron format at https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
# Update packages 5am and 4pm PST
- cron: '0 0,13 * * *'
jobs:
auto-update:
runs-on: ubuntu-latest
strategy:
# do not let 1 failure stop the other jobs from proceeding
fail-fast: false
matrix:
package-name:
- amazon-ecr-credential-helper
- amtool
- argocd
- assume-role
- atlantis
- atmos
- awless
- aws-copilot-cli
- aws-iam-authenticator
- aws-nuke
- aws-vault
- cfssl
- cfssljson
- chamber
- cilium-cli
- cli53
- cloud-nuke
- cloudflared
- codefresh
- conftest
- ctop
- direnv
- doctl
- ec2-instance-selector
- ecspresso
- emailcli
- envcli
- fetch
- figurine
- fzf
- gh
- ghr
- github-commenter
- github-release
- github-status-updater
- gitleaks
- go-jsonnet
- gomplate
- gonsul
- goofys
- gosu
- grpcurl
- hcledit
- helm
- helm2
- helm3
- helmfile
- htmltest
- hugo
- infracost
- jp
- json2hcl
- jx
- k3d
- k6
- k9s
- katafygio
- kfctl
- kind
- kops
- kubecron
- kubectl
- kubectl-1.20
- kubectl-1.21
- kubectl-1.22
- kubectl-1.23
- kubectl-1.24
- kubectl-1.25
- kubectl-1.26
- kubectl-1.27
- kubectl-1.28
- kubectl-1.29
- kubectl-1.30
- kubectx
- kubens
- kubeval
- lazydocker
- lectl
- minikube
- misspell
- opa
- pack
- pandoc
- pgmetrics
- pluto
- popeye
- promtool
- rainbow-text
- rakkess
- rancher
- rbac-lookup
- saml2aws
- sentry-cli
- shellcheck
- shfmt
- slack-notifier
- sops
- spacectl
- spotctl
- sshm
- stern
- sudosh
- teleport
- terraform-0.14
- terraform-0.15
- terraform-config-inspect
- terraform-docs
- terraform-module-versions
- terragrunt
- terrahelp
- tflint
- tfschema
- tfsec
- thanos
- trivy
- variant
- variant2
- velero
- vendir
- venona
- vert
- yajsv
- yq
steps:
- uses: actions/checkout@v4
- name: Get current package information
shell: bash
id: current
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
make -C vendor/${{matrix.package-name}} info/github
- name: Update packages
shell: bash
id: update
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
make -C vendor/${{matrix.package-name}} auto-update
make -C vendor/${{matrix.package-name}} info/github
- name: Update readme
shell: bash
id: readme
if: steps.update.outputs.package_version != steps.current.outputs.package_version
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
make init
make readme/deps
make readme
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
if: steps.update.outputs.package_version != steps.current.outputs.package_version
with:
token: ${{ secrets.GITHUB_BOT_TOKEN }}
committer: 'cloudpossebot <[email protected]>'
author: 'cloudpossebot <[email protected]>'
commit-message: Update ${{ steps.update.outputs.package_name }} to ${{ steps.current.outputs.package_version }} → ${{ steps.update.outputs.package_version }}
title: Update ${{ steps.update.outputs.package_name }} to ${{ steps.update.outputs.package_version }}
body: |-
## what
This is an auto-generated PR that updates the ${{ steps.update.outputs.package_name }} package version.
| Meta | Details |
|:------------------|:---------------------------------------------|
| **Package Name** | `${{ steps.update.outputs.package_name }}` |
| **Vendor** | [${{ steps.update.outputs.vendor }}](${{ steps.update.outputs.package_homepage_url }}) |
| **Version** | ${{ steps.update.outputs.package_version }} |
| **License** | ${{ steps.update.outputs.package_license }} |
| **Repo** | ${{ steps.update.outputs.package_repo_url }} |
| **Arch** | ${{ steps.update.outputs.arch }} |
| **OS** | ${{ steps.update.outputs.os }} |
| **Download URL** | ${{ steps.update.outputs.download_url }} |
## why
Publish the latest release of `${{ steps.update.outputs.package_name }}` to our package repository.
branch: auto-update/${{ steps.update.outputs.package_name }}-${{ steps.update.outputs.package_version }}
base: main
delete-branch: true
labels: |
auto-update
vendor/${{ steps.update.outputs.package_name }}