Skip to content

create-version-update-pr #31

create-version-update-pr

create-version-update-pr #31

name: create-version-update-pr
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
create-version-update-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate GitHub App token
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
architecture: "x64"
- name: Install dependencies
run: python -m pip install --upgrade ruamel.yaml PyGithub GitPython packaging
- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ steps.generate-token.outputs.token }}
- name: Fetch all branches
run: git fetch --all
- name: Run Python
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
run: python create_prs_for_vcs_repositories_update.py