ci: update workflow config

This commit is contained in:
sebthom
2024-12-22 22:20:23 +01:00
parent a738f0748d
commit cde3250ab8
4 changed files with 29 additions and 25 deletions

View File

@@ -7,8 +7,8 @@ name: Update Python Dependencies
on:
schedule:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
- cron: '0 5 * * *' # daily at 5 a.m.
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
- cron: '0 10 * * *' # daily at 10 a.m.
workflow_dispatch:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
@@ -27,7 +27,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Show environment variables
- name: "Show: GitHub context"
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo $GITHUB_CONTEXT
- name: "Show: environment variables"
run: env | sort
@@ -41,13 +47,13 @@ jobs:
private_key: ${{ secrets.DEPS_UPDATER_PRIVATE_KEY }}
- name: Git checkout
- name: Git Checkout
uses: actions/checkout@v4 # https://github.com/actions/checkout
with:
token: ${{ steps.generate_token.outputs.token }}
- name: "Install Python and PDM" # https://github.com/pdm-project/setup-pdm
- name: "Install: Python and PDM" # https://github.com/pdm-project/setup-pdm
uses: pdm-project/setup-pdm@v4
with:
python-version: "${{ env.PYTHON_VERSION }}"
@@ -64,7 +70,7 @@ jobs:
if [[ ! -e .venv ]]; then
pdm venv create || true
fi
pdm install -v
pdm sync --clean -v
- name: Update Python dependencies