[skip ci] Update github-related files to match upstream (#1314)

* [skip ci] chore: Update workflows

* chore: Update issue templates

* chore: Update url in README
This commit is contained in:
Claudemirovsky
2023-02-22 09:09:54 -03:00
committed by GitHub
parent 59aeb2dd65
commit 6572205982
18 changed files with 92 additions and 223 deletions

View File

@ -12,7 +12,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5.1.0
- uses: actions/stale@v7
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Close everything older than ~6 months

View File

@ -5,6 +5,10 @@ on:
paths-ignore:
- '**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
env:
CI_CHUNK_SIZE: 65
@ -34,7 +38,7 @@ jobs:
- id: get-changed-files
name: Get changed files
uses: Ana06/get-changed-files@v2.1.0
uses: Ana06/get-changed-files@v2.2.0
- id: parse-changed-files
name: Parse changed files

View File

@ -7,6 +7,10 @@ on:
paths-ignore:
- '**.md'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
env:
CI_CHUNK_SIZE: 65
@ -20,20 +24,12 @@ jobs:
env:
CI_MODULE_GEN: true
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
all_but_latest: true
- name: Clone repo
uses: actions/checkout@v3
with:
ref: master
- name: Find lib changes
id: modified-libs
uses: tj-actions/changed-files@v32
uses: tj-actions/changed-files@v35
with:
files: lib/**
files_ignore: lib/**.md
@ -144,8 +140,6 @@ jobs:
steps:
- name: Checkout master branch
uses: actions/checkout@v3
with:
ref: master
- name: Set up JDK
uses: actions/setup-java@v3
@ -169,7 +163,7 @@ jobs:
arguments: assembleRelease
- name: Upload APKs (chunk ${{ matrix.chunk }})
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: "github.repository == 'jmir1/aniyomi-extensions'"
with:
name: "individual-apks-${{ matrix.chunk }}"
@ -187,7 +181,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download APK artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: ~/apk-artifacts

View File

@ -1,16 +0,0 @@
name: Cancel old pull request workflows
on:
workflow_run:
workflows: ["PR build check"]
types:
- requested
jobs:
cancel:
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.9.1
with:
workflow_id: ${{ github.event.workflow.id }}
all_but_latest: true

View File

@ -1,33 +0,0 @@
name: Issue closer
on:
issues:
types: [opened, edited, reopened]
jobs:
autoclose:
runs-on: ubuntu-latest
steps:
- name: Autoclose issues
uses: arkon/issue-closer-action@v3.4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ignoreLabel: do-not-autoclose
rules: |
[
{
"type": "title",
"regex": ".*<(Source Name|short description)>*",
"message": "You did not fill out the description in the title"
},
{
"type": "body",
"regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
"message": "The acknowledgment section was not removed"
},
{
"type": "body",
"regex": ".*\\* (Aniyomi version|Android version|Device|Name|Link|Extension version): \\?.*",
"message": "The requested information was not filled out"
}
]

View File

@ -16,6 +16,8 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
duplicate-check-enabled: true
duplicate-check-label: Source request
existing-check-enabled: true
existing-check-label: Source request
auto-close-rules: |
[
{
@ -31,7 +33,13 @@ jobs:
{
"type": "title",
"regex": ".*(Source name|Short description).*",
"message": "You did not fill out the description in the title"
"message": "You did not fill out the description in the title."
},
{
"type": "both",
"regex": ".*(?:fail(?:ed|ure)?|can\\s*(?:no|')?t|unable|get past|(?<!n[o']?t )blocked by|error) (?:to )?(?:bypass|penetrate)?.*cloudfl?are.*",
"ignoreCase": true,
"message": "Refer to the **Solving Cloudflare issues** section at https://aniyomi.org/help/guides/troubleshooting/#solving-cloudflare-issues. If it doesn't work, migrate to other sources or wait until they lower their protection."
}
]
auto-close-ignore-label: do-not-autoclose

View File

@ -12,8 +12,8 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
- uses: dessant/lock-threads@v4
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: '2'
pr-lock-inactive-days: '2'
issue-inactive-days: '2'
pr-inactive-days: '2'