update workflow config

This commit is contained in:
sebthom
2024-04-04 14:24:01 +02:00
parent d1f50e9b16
commit 657eadaa59
2 changed files with 15 additions and 17 deletions

View File

@@ -7,10 +7,10 @@ name: Build
on:
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)
- 'dependencies/pdm' # prevent GHA triggered twice (once for commit to the branch and once for opening/syncing the PR)
tags-ignore: # don't build tags
branches-ignore: # build all branches except:
- 'dependabot/**' # prevent GHA triggered twice (once for commit to the branch and once for opening/syncing the PR)
- 'dependencies/pdm' # 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:
- '**/*.md'
@@ -34,10 +34,12 @@ on:
workflow_dispatch:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
defaults:
run:
shell: bash
jobs:
###########################################################
@@ -72,6 +74,11 @@ jobs:
- name: Show environment variables
run: env | sort
- name: Configure Fast APT Mirror
uses: vegardit/fast-apt-mirror.sh@v1
- name: Git checkout
uses: actions/checkout@v4 # https://github.com/actions/checkout
@@ -80,10 +87,6 @@ jobs:
uses: toblux/start-clamd-github-action@v0.2
- name: Configure Fast APT Mirror
uses: vegardit/fast-apt-mirror.sh@v1
- name: "Install: Chromium Browser"
if: env.ACT == 'true' && startsWith(matrix.os, 'ubuntu')
run: |
@@ -246,7 +249,7 @@ jobs:
steps:
- name: Git checkout
# only required by "gh release create" to prevent "fatal: Not a git repository"
uses: actions/checkout@v4 #https://github.com/actions/checkout
uses: actions/checkout@v4 #https://github.com/actions/checkout
- name: Delete untagged docker image
@@ -297,7 +300,7 @@ jobs:
- name: "Delete intermediate build artifacts"
uses: geekyeggo/delete-artifact@v5 # https://github.com/GeekyEggo/delete-artifact/
uses: geekyeggo/delete-artifact@v5 # https://github.com/GeekyEggo/delete-artifact/
with:
name: "*"
failOnError: false

View File

@@ -1,18 +1,13 @@
# SPDX-FileCopyrightText: © Sebastian Thomschke and contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-ArtifactOfProjectHomePage: https://github.com/Second-Hand-Friends/kleinanzeigen-bot/
#
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: Stale issues
on:
schedule:
- cron: '0 16 * * *'
- cron: '0 16 * * 1'
workflow_dispatch:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
permissions:
contents: write # only for delete-branch option
issues: write
pull-requests: write
@@ -42,7 +37,7 @@ jobs:
pinned
security
- name: Run stale action
- name: Run stale action (for enhancements)
uses: actions/stale@v9 # https://github.com/actions/stale
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}