2023-12-20 09:21:31 +00:00
|
|
|
name: Update dependencies
|
|
|
|
on:
|
|
|
|
workflow_dispatch: {}
|
2024-05-09 15:41:59 +00:00
|
|
|
schedule:
|
2024-05-12 10:30:22 +00:00
|
|
|
- cron: "34 3 * * */8"
|
2023-12-20 09:21:31 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
name: Check for updates
|
|
|
|
runs-on: ubuntu-latest
|
2023-12-28 20:20:28 +00:00
|
|
|
if: github.repository == 'ohmyzsh/ohmyzsh'
|
2023-12-20 09:21:31 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
2024-05-12 10:30:22 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-12-20 09:21:31 +00:00
|
|
|
- name: Authenticate as @ohmyzsh
|
2023-12-28 20:20:28 +00:00
|
|
|
id: generate_token
|
2023-12-20 09:21:31 +00:00
|
|
|
uses: ohmyzsh/github-app-token@v2
|
|
|
|
with:
|
2023-12-20 18:38:25 +00:00
|
|
|
app_id: ${{ secrets.OHMYZSH_APP_ID }}
|
|
|
|
private_key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
|
2024-05-09 15:41:59 +00:00
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version: "3.12"
|
|
|
|
cache: "pip"
|
2023-12-20 09:21:31 +00:00
|
|
|
- name: Process dependencies
|
|
|
|
env:
|
2023-12-28 20:20:28 +00: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 09:21:31 +00:00
|
|
|
run: |
|
2023-12-28 20:20:28 +00:00
|
|
|
pip install -r .github/workflows/dependencies/requirements.txt
|
2023-12-20 09:21:31 +00:00
|
|
|
python3 .github/workflows/dependencies/updater.py
|