Reuse some external workflows.

This commit is contained in:
Kevin Deldycke
2022-03-28 22:23:26 +04:00
parent e29cc1c66d
commit 82febc993a
8 changed files with 63 additions and 109 deletions

View File

@@ -1,5 +1,3 @@
# Locks closed issues and pull requests after a period of inactivity, to
# prevent spam and noise.
---
name: Autolock
"on":
@@ -8,19 +6,6 @@ name: Autolock
- cron: "43 8 * * 1"
jobs:
lock:
runs-on: ubuntu-20.04
steps:
- uses: dessant/lock-threads@v3.0.0
with:
# Lock down after 3 months.
issue-inactive-days: '90'
issue-comment: >
This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.
pr-inactive-days: '90'
pr-comment: >
This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.
autolock:
uses: kdeldycke/workflows/.github/workflows/autolock.yaml@v0.9.1

14
.github/workflows/label-sponsors.yaml vendored Normal file
View File

@@ -0,0 +1,14 @@
---
name: Label sponsors
"on":
pull_request:
types:
- opened
issues:
types:
- opened
jobs:
label-sponsors:
uses: kdeldycke/workflows/.github/workflows/label-sponsors.yaml@v0.9.1

15
.github/workflows/labels.yaml vendored Normal file
View File

@@ -0,0 +1,15 @@
---
name: Labels
"on":
push:
branches:
- main
jobs:
labels:
uses: kdeldycke/workflows/.github/workflows/labels.yaml@v0.9.1
needs: generate-labels
with:
extra-label-files: |
.github/labels-extra.json

View File

@@ -1,14 +0,0 @@
---
name: Sync labels
"on": issues
jobs:
sync_labels:
name: Sync labels
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.4.0
- uses: lannonbr/issue-label-manager-action@3.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -2,10 +2,12 @@
name: Lint
"on":
push:
pull_request:
schedule:
# Run linter every week to catch regressions from external dependencies.
- cron: 17 9 * * 1
jobs:
lint:
uses: kdeldycke/workflows/.github/workflows/lint.yaml@v0.9.1
jobs:
@@ -30,17 +32,3 @@ jobs:
- run: |
npx awesome-lint --version
npx awesome-lint
lint-yaml:
name: Lint YAML files
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/setup-python@v2.3.1
- name: Install linter
run: |
python -m pip install --upgrade pip
python -m pip install yamllint
- name: Lint
run: |
yamllint .