Update apolo-flow action tags #85
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: Update apolo-flow action tags | |
on: | |
schedule: | |
- cron: 0 0 * * * | |
jobs: | |
auto-update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: make setup | |
- id: run_updater | |
name: Run update actions script | |
run: python \{\{cookiecutter.flow_dir\}\}/update_actions.py ".apolo/*.y*ml" | |
- id: generate_token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.BOT_APP_ID }} | |
private_key: ${{ secrets.BOT_PRIVATE_KEY }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ steps.generate_token.outputs.token }} | |
branch: update/actions-tags | |
title: Auto-update actions tags | |
commit-message: Auto-update apolo-flow actions tags | |
body: | | |
Updated apolo-flow action version tags in the following | |
files: ${{ steps.run_updater.outputs.updated_files }} |