ci: update workflow config

This commit is contained in:
sebthom 2025-08-12 11:54:18 +02:00
parent 71f2580d66
commit 050f36c438
4 changed files with 26 additions and 50 deletions

6
.gitattributes vendored
View file

@ -39,6 +39,7 @@
# Config/Serialisation
.editorconfig text
**/.editorconfig text
*.graphql text
*.ini text
*.properties text
*.json text
@ -56,8 +57,11 @@
*.fish text eol=lf
*.sh text eol=lf
*.zsh text eol=lf
*.dart text
*.hx text
*.lua text
*.php text
*.py text
*.python text
*.sql text
**/Dockerfile text eol=lf
@ -125,6 +129,8 @@
*.htm text diff=html
*.html text diff=html
*.js text
*.ts text
*.vue text
# https://git-scm.com/docs/gitattributes#_export_ignore

View file

@ -3,42 +3,49 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-ArtifactOfProjectHomePage: https://github.com/vegardit/docker-openldap
#
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Build
on:
on: # https://docs.github.com/en/actions/reference/events-that-trigger-workflows
schedule:
# https://docs.github.com/en/actions/reference/choosing-when-your-workflow-runs/events-that-trigger-workflows
- cron: '0 17 * * 3'
push:
branches-ignore: # build all branches except:
- 'dependabot/**' # prevent GHA triggered twice (once for commit to the branch and once for opening/syncing the PR)
tags-ignore: # don't build tags
- '**'
paths-ignore:
- '**/*.adoc'
- '**/*.md'
- '.editorconfig'
- '.git*'
- '.github/*.yml'
- '.github/ISSUE_TEMPLATE/*'
- '.github/workflows/stale.yml'
pull_request:
paths-ignore:
- '**/*.adoc'
- '**/*.md'
- '.editorconfig'
- '.git*'
- '.github/ISSUE_TEMPLATE/*'
- '.github/*.yml'
- '.github/workflows/stale.yml'
schedule:
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
- cron: '0 17 * * 3'
workflow_dispatch:
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_dispatch
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
defaults:
run:
shell: bash
env:
DOCKER_REPO_NAME: openldap
TRIVY_CACHE_DIR: ~/.trivy/cache
jobs:
###########################################################
@ -152,7 +159,7 @@ jobs:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
permissions:
packages: write

View file

@ -1,11 +1,12 @@
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Stale issues
on:
schedule:
- cron: '0 16 * * 1'
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
- cron: '0 15 1,15 * *'
workflow_dispatch:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
permissions:
issues: write
@ -14,43 +15,6 @@ permissions:
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v5 # https://github.com/actions/checkout
- name: Run stale action
uses: actions/stale@v9 # https://github.com/actions/stale
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 90
days-before-close: 14
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed in 14 days if no further activity occurs.
If the issue is still valid, please add a respective comment to prevent this
issue from being closed automatically. Thank you for your contributions.
stale-issue-label: stale
close-issue-label: wontfix
exempt-issue-labels: |
enhancement
pinned
security
- name: Run stale action (for enhancements)
uses: actions/stale@v9 # https://github.com/actions/stale
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 360
days-before-close: 14
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed in 14 days if no further activity occurs.
If the issue is still valid, please add a respective comment to prevent this
issue from being closed automatically. Thank you for your contributions.
stale-issue-label: stale
close-issue-label: wontfix
only-labels: enhancement
exempt-issue-labels: |
pinned
security
- name: Run stale action
uses: sebthom/gha-shared/.github/actions/stale@v1

1
.gitignore vendored
View file

@ -11,7 +11,6 @@ _LOCAL/
.project
.settings/
bin/
**/.*.md.html
# IntelliJ
/.idea