2023-12-20 10:21:31 +01:00
|
|
|
name: Update dependencies
|
|
|
|
on:
|
|
|
|
workflow_dispatch: {}
|
2024-05-09 17:41:59 +02:00
|
|
|
schedule:
|
2024-05-12 12:30:22 +02:00
|
|
|
- cron: "34 3 * * */8"
|
2023-12-20 10:21:31 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
name: Check for updates
|
|
|
|
runs-on: ubuntu-latest
|
2023-12-28 21:20:28 +01:00
|
|
|
if: github.repository == 'ohmyzsh/ohmyzsh'
|
2023-12-20 10:21:31 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
2024-05-12 12:30:22 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-12-20 10:21:31 +01:00
|
|
|
- name: Authenticate as @ohmyzsh
|
2023-12-28 21:20:28 +01:00
|
|
|
id: generate_token
|
2023-12-20 10:21:31 +01:00
|
|
|
uses: ohmyzsh/github-app-token@v2
|
|
|
|
with:
|
2023-12-20 19:38:25 +01:00
|
|
|
app_id: ${{ secrets.OHMYZSH_APP_ID }}
|
|
|
|
private_key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
|
2024-05-09 17:41:59 +02:00
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version: "3.12"
|
|
|
|
cache: "pip"
|
2023-12-20 10:21:31 +01:00
|
|
|
- name: Process dependencies
|
|
|
|
env:
|
2023-12-28 21:20:28 +01:00
|
|
|
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
|
|
GIT_APP_NAME: ohmyzsh[bot]
|
|
|
|
GIT_APP_EMAIL: 54982679+ohmyzsh[bot]@users.noreply.github.com
|
|
|
|
TMP_DIR: ${{ runner.temp }}
|
2023-12-20 10:21:31 +01:00
|
|
|
run: |
|
2023-12-28 21:20:28 +01:00
|
|
|
pip install -r .github/workflows/dependencies/requirements.txt
|
2023-12-20 10:21:31 +01:00
|
|
|
python3 .github/workflows/dependencies/updater.py
|