Adopters Updater #422
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: Adopters Updater | |
# // Run on cron every 12 hours | |
on: | |
schedule: | |
- cron: '0 */12 * * *' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
jobs: | |
check_adopters: | |
if: github.repository_owner == 'adoptium' | |
name: Temurin Adopters | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
persist-credentials: false | |
- run: python3 .github/workflows/fetch-adopters.py | |
- uses: gr2m/create-or-update-pull-request-action@86ec1766034c8173518f61d2075cc2a173fb8c97 # v1.9.4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ADOPTIUM_BOT_TOKEN }} | |
with: | |
title: "Update Temurin Adopters" | |
body: "This is an automatically generated pull request, it will be automatically merged if all the CI tests pass." | |
branch: "adopters_bot" | |
commit-message: "adopters: update temurin adopters" | |
author: "adoptium-bot <[email protected]>" |