Sync versions #40
This file contains hidden or 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
| # Sync Calico and Calico Enterprise versions and CRDs into this repo. | |
| # Creates or updates a PR if anything changed. | |
| --- | |
| name: Sync versions | |
| on: | |
| schedule: | |
| - cron: '0 * * * *' # every hour | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: sync-versions-${{ matrix.branch }} | |
| cancel-in-progress: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| branch: [master, release-v1.41, release-v1.40, release-v1.38] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ matrix.branch }} | |
| persist-credentials: false | |
| - name: Configure git auth | |
| run: | | |
| git config --global credential.helper store | |
| echo "https://marvin-tigera:${GITHUB_TOKEN}@github.com" > ~/.git-credentials | |
| git config --global url."https://github.com/".insteadOf "git@github.com:" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.MARVIN_PAT }} | |
| - name: Gen versions | |
| run: make gen-versions GIT_CLONE_URL_BASE=https://github.com/ | |
| - uses: peter-evans/create-pull-request@v6 | |
| with: | |
| commit-message: "Sync versions from Calico and Calico Enterprise" | |
| branch: auto-sync-versions-${{ matrix.branch }} | |
| base: ${{ matrix.branch }} | |
| title: "Auto: sync versions [${{ matrix.branch }}]" | |
| body: | | |
| Automated sync of versions and CRDs from Calico and Calico Enterprise into | |
| `${{ matrix.branch }}` via `make gen-versions`. | |
| Triggered by scheduled workflow. | |
| labels: auto-sync,docs-not-required,release-note-not-required,merge-when-ready | |
| delete-branch: true |