Skip to content

Commit 42740dc

Browse files
committed
ci: update workflow config
1 parent f466f31 commit 42740dc

File tree

4 files changed

+93
-46
lines changed

4 files changed

+93
-46
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
22
version: 2
33
updates:
4-
- package-ecosystem: github-actions
5-
directory: /
6-
schedule:
7-
interval: weekly
8-
day: monday
9-
time: "09:00"
10-
commit-message:
11-
prefix: fix
12-
prefix-development: chore
13-
include: scope
14-
labels:
15-
- gha
16-
- dependencies
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: weekly
8+
day: monday
9+
time: "09:00"
10+
commit-message:
11+
prefix: fix
12+
prefix-development: chore
13+
include: scope
14+
labels:
15+
- gha
16+
- dependencies

.github/stale.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,38 @@
22
# SPDX-FileContributor: Sebastian Thomschke, Vegard IT GmbH
33
# SPDX-License-Identifier: Apache-2.0
44
#
5-
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
5+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
66
name: Build
77

88
on:
9+
schedule:
10+
- cron: '0 15 1 * *'
911
push:
10-
branches:
11-
- '**'
12-
tags-ignore:
12+
branches-ignore: # build all branches except:
13+
- 'dependabot/**' # prevent GHA triggered twice (once for commit to the branch and once for opening/syncing the PR)
14+
tags-ignore: # don't build tags
1315
- '**'
1416
paths-ignore:
1517
- '**/*.adoc'
1618
- '**/*.md'
1719
- '.editorconfig'
1820
- '.git*'
1921
- '.github/*.yml'
22+
- '.github/workflows/stale.yml'
2023
- 'tools'
2124
pull_request:
25+
paths-ignore:
26+
- '**/*.adoc'
27+
- '**/*.md'
28+
- '.editorconfig'
29+
- '.git*'
30+
- '.github/*.yml'
31+
- 'tools'
2232
workflow_dispatch:
2333
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
2434
inputs:
2535
debug-with-ssh:
26-
description: "Start an SSH session for debugging purposes after tests ran:"
36+
description: "Start an SSH session for debugging purposes at the end of the build:"
2737
default: never
2838
type: choice
2939
options: [ always, on_failure, on_failure_or_cancelled, never ]
@@ -41,25 +51,34 @@ on:
4151
type: choice
4252
options: [ "", cpp, cs, eval, flash, hl, java, jvm, lua, neko, node, php, python ]
4353

54+
4455
defaults:
4556
run:
4657
shell: bash
4758

59+
4860
jobs:
61+
62+
###########################################################
4963
build:
64+
###########################################################
5065
# https://github.com/vegardit/haxe-reusable-workflows/
5166
uses: vegardit/haxe-reusable-workflows/.github/workflows/test-with-haxe.yml@dev
5267
strategy:
5368
fail-fast: false
5469
matrix:
55-
os:
70+
os: # https://github.com/actions/runner-images#available-images
5671
- ubuntu-latest
57-
- macos-latest
72+
- macos-13 # Intel
5873
- windows-latest
5974
haxe:
6075
- nightly
76+
- latest
6177
- 4.3.6
6278
- 4.2.5
79+
include:
80+
- os: macos-latest # ARM
81+
haxe: 4.3.6
6382
with:
6483
haxe-reusable-workflows-version: dev
6584

.github/workflows/stale.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
2+
name: Stale issues
3+
4+
on:
5+
schedule:
6+
- cron: '0 15 1,15 * *'
7+
workflow_dispatch:
8+
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
9+
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
14+
jobs:
15+
stale:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Git checkout
20+
uses: actions/checkout@v4 # https://github.com/actions/checkout
21+
22+
- name: Run stale action
23+
uses: actions/stale@v9 # https://github.com/actions/stale
24+
with:
25+
days-before-stale: 90
26+
days-before-close: 14
27+
stale-issue-message: >
28+
This issue has been automatically marked as stale because it has not had
29+
recent activity. It will be closed in 14 days if no further activity occurs.
30+
If the issue is still valid, please add a respective comment to prevent this
31+
issue from being closed automatically. Thank you for your contributions.
32+
stale-issue-label: stale
33+
close-issue-label: wontfix
34+
exempt-issue-labels: |
35+
enhancement
36+
pinned
37+
security
38+
39+
- name: Run stale action (for enhancements)
40+
uses: actions/stale@v9 # https://github.com/actions/stale
41+
with:
42+
days-before-stale: 360
43+
days-before-close: 14
44+
stale-issue-message: >
45+
This issue has been automatically marked as stale because it has not had
46+
recent activity. It will be closed in 14 days if no further activity occurs.
47+
If the issue is still valid, please add a respective comment to prevent this
48+
issue from being closed automatically. Thank you for your contributions.
49+
stale-issue-label: stale
50+
close-issue-label: wontfix
51+
only-labels: enhancement
52+
exempt-issue-labels: |
53+
pinned
54+
security

0 commit comments

Comments
 (0)