mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
Bumps [octokit/graphql-action](https://github.com/octokit/graphql-action) from 2.3.2 to 3.0.0.
- [Release notes](https://github.com/octokit/graphql-action/releases)
- [Commits](8ad880e4d4...abaeca7ba4)
---
updated-dependencies:
- dependency-name: octokit/graphql-action
dependency-version: 3.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
name: Upgrade Kubespray components with new patches versions - all branches
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '22 2 * * *' # every day, 02:22 UTC
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
jobs:
|
|
get-releases-branches:
|
|
if: github.repository == 'kubernetes-sigs/kubespray'
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
branches: ${{ steps.get-branches.outputs.data }}
|
|
steps:
|
|
- uses: octokit/graphql-action@abaeca7ba4f0325d63b8de7ef943c2418d161b93
|
|
id: get-branches
|
|
with:
|
|
query: |
|
|
query get_release_branches($owner:String!, $name:String!) {
|
|
repository(owner:$owner, name:$name) {
|
|
refs(refPrefix: "refs/heads/",
|
|
first: 1, # TODO increment once we have release branch with the new checksums format
|
|
query: "release-",
|
|
orderBy: {
|
|
field: ALPHABETICAL,
|
|
direction: DESC
|
|
}) {
|
|
nodes {
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
variables: |
|
|
owner: ${{ github.repository_owner }}
|
|
name: ${{ github.event.repository.name }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
update-versions:
|
|
needs: get-releases-branches
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
branch:
|
|
- name: ${{ github.event.repository.default_branch }}
|
|
- ${{ fromJSON(needs.get-releases-branches.outputs.branches).repository.refs.nodes }}
|
|
uses: ./.github/workflows/upgrade-patch-versions.yml
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
name: Update patch updates on ${{ matrix.branch.name }}
|
|
with:
|
|
branch: ${{ matrix.branch.name }}
|