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

@@ -1,17 +1,17 @@
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2 version: 2
updates: updates:
- package-ecosystem: github-actions - package-ecosystem: github-actions
directory: / directory: /
schedule: schedule:
interval: weekly interval: weekly
day: monday day: monday
time: "17:00" time: "17:00"
commit-message: commit-message:
prefix: ci prefix: ci
prefix-development: ci prefix-development: ci
include: scope include: scope
labels: labels:
- pinned - pinned
- dependencies - dependencies
- gha - gha

View File

@@ -83,7 +83,7 @@ jobs:
run: echo $GITHUB_CONTEXT run: echo $GITHUB_CONTEXT
- name: Show environment variables - name: "Show: environment variables"
run: env | sort run: env | sort
@@ -91,7 +91,7 @@ jobs:
uses: vegardit/fast-apt-mirror.sh@v1 uses: vegardit/fast-apt-mirror.sh@v1
- name: Git checkout - name: Git Checkout
uses: actions/checkout@v4 # https://github.com/actions/checkout uses: actions/checkout@v4 # https://github.com/actions/checkout

View File

@@ -3,7 +3,7 @@ name: Stale issues
on: on:
schedule: schedule:
- cron: '0 16 * * 1' - cron: '0 15 1,15 * *'
workflow_dispatch: workflow_dispatch:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ # https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
@@ -22,7 +22,6 @@ jobs:
- name: Run stale action - name: Run stale action
uses: actions/stale@v9 # https://github.com/actions/stale uses: actions/stale@v9 # https://github.com/actions/stale
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 90 days-before-stale: 90
days-before-close: 14 days-before-close: 14
stale-issue-message: > stale-issue-message: >
@@ -40,7 +39,6 @@ jobs:
- name: Run stale action (for enhancements) - name: Run stale action (for enhancements)
uses: actions/stale@v9 # https://github.com/actions/stale uses: actions/stale@v9 # https://github.com/actions/stale
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 360 days-before-stale: 360
days-before-close: 14 days-before-close: 14
stale-issue-message: > stale-issue-message: >

View File

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