Check Latest CI versions #1815
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
| --- | |
| # SPDX-license-identifier: Apache-2.0 | |
| ############################################################################## | |
| # Copyright (c) 2021 | |
| # All rights reserved. This program and the accompanying materials | |
| # are made available under the terms of the Apache License, Version 2.0 | |
| # which accompanies this distribution, and is available at | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| ############################################################################## | |
| name: Check Lastest CI versions | |
| # yamllint disable-line rule:truthy | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| pull_request: | |
| types: [opened, synchronize, reopened, closed] | |
| jobs: | |
| check-versions: | |
| permissions: | |
| contents: write # for technote-space/create-pr-action to push code | |
| pull-requests: write # for technote-space/create-pr-action to create a PR | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0 | |
| with: | |
| # Fine-grained PAT with contents:write and workflows:write scopes | |
| token: ${{ secrets.WORKFLOW_TOKEN }} | |
| - uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # 2.1.4 | |
| with: | |
| EXECUTE_COMMANDS: | | |
| ./update_versions.sh | |
| COMMIT_MESSAGE: "Upgrade dependency versions files" | |
| COMMIT_NAME: "electrocucaracha bot" | |
| PR_BRANCH_NAME: "versions-update-${PR_ID}" | |
| PR_TITLE: "chore: update versions" |