forked from recloudstream/cloudstream
link dokka to github and make builds concurrent
This commit is contained in:
parent
2f44c97b86
commit
9bbe3d65d2
3 changed files with 86 additions and 70 deletions
|
@ -1,63 +1,63 @@
|
||||||
name: Issue automatic actions
|
name: Issue automatic actions
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [opened, edited]
|
types: [opened, edited]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
issue-moderator:
|
issue-moderator:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Generate access token
|
- name: Generate access token
|
||||||
id: generate_token
|
id: generate_token
|
||||||
uses: tibdex/github-app-token@v1
|
uses: tibdex/github-app-token@v1
|
||||||
with:
|
with:
|
||||||
app_id: ${{ secrets.GH_APP_ID }}
|
app_id: ${{ secrets.GH_APP_ID }}
|
||||||
private_key: ${{ secrets.GH_APP_KEY }}
|
private_key: ${{ secrets.GH_APP_KEY }}
|
||||||
- name: Similarity analysis
|
- name: Similarity analysis
|
||||||
uses: actions-cool/issues-similarity-analysis@v1
|
uses: actions-cool/issues-similarity-analysis@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.generate_token.outputs.token }}
|
token: ${{ steps.generate_token.outputs.token }}
|
||||||
filter-threshold: 0.5
|
filter-threshold: 0.5
|
||||||
title-excludes: ''
|
title-excludes: ''
|
||||||
comment-title: |
|
comment-title: |
|
||||||
### Your issue looks similar to these issues:
|
### Your issue looks similar to these issues:
|
||||||
Please close if duplicate.
|
Please close if duplicate.
|
||||||
comment-body: '${index}. ${similarity} #${number}'
|
comment-body: '${index}. ${similarity} #${number}'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Automatically close issues that dont follow the issue template
|
- name: Automatically close issues that dont follow the issue template
|
||||||
uses: lucasbento/auto-close-issues@v1.0.2
|
uses: lucasbento/auto-close-issues@v1.0.2
|
||||||
with:
|
with:
|
||||||
github-token: ${{ steps.generate_token.outputs.token }}
|
github-token: ${{ steps.generate_token.outputs.token }}
|
||||||
issue-close-message: |
|
issue-close-message: |
|
||||||
@${issue.user.login}: hello! :wave:
|
@${issue.user.login}: hello! :wave:
|
||||||
This issue is being automatically closed because it does not follow the issue template."
|
This issue is being automatically closed because it does not follow the issue template."
|
||||||
closed-issues-label: "invalid"
|
closed-issues-label: "invalid"
|
||||||
- name: Check if issue mentions a provider
|
- name: Check if issue mentions a provider
|
||||||
id: provider_check
|
id: provider_check
|
||||||
env:
|
env:
|
||||||
GH_TEXT: "${{ github.event.issue.title }} ${{ github.event.issue.body }}"
|
GH_TEXT: "${{ github.event.issue.title }} ${{ github.event.issue.body }}"
|
||||||
run: |
|
run: |
|
||||||
wget --output-document check_issue.py "https://raw.githubusercontent.com/recloudstream/.github/master/.github/check_issue.py"
|
wget --output-document check_issue.py "https://raw.githubusercontent.com/recloudstream/.github/master/.github/check_issue.py"
|
||||||
pip3 install httpx
|
pip3 install httpx
|
||||||
RES="$(python3 ./check_issue.py)"
|
RES="$(python3 ./check_issue.py)"
|
||||||
echo "::set-output name=name::${RES}"
|
echo "::set-output name=name::${RES}"
|
||||||
- name: Comment if issue mentions a provider
|
- name: Comment if issue mentions a provider
|
||||||
if: steps.provider_check.outputs.name != 'none'
|
if: steps.provider_check.outputs.name != 'none'
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3
|
||||||
with:
|
with:
|
||||||
actions: 'create-comment'
|
actions: 'create-comment'
|
||||||
token: ${{ steps.generate_token.outputs.token }}
|
token: ${{ steps.generate_token.outputs.token }}
|
||||||
body: |
|
body: |
|
||||||
Hello ${{ github.event.issue.user.login }}.
|
Hello ${{ github.event.issue.user.login }}.
|
||||||
Please do not report any provider bugs here. This repository does not contain any providers. Please find the appropriate repository and report your issue there or join the [discord](https://discord.gg/5Hus6fM).
|
Please do not report any provider bugs here. This repository does not contain any providers. Please find the appropriate repository and report your issue there or join the [discord](https://discord.gg/5Hus6fM).
|
||||||
|
|
||||||
Found provider name: `${{ steps.provider_check.outputs.name }}`
|
Found provider name: `${{ steps.provider_check.outputs.name }}`
|
||||||
- name: Add eyes reaction to all issues
|
- name: Add eyes reaction to all issues
|
||||||
uses: actions-cool/emoji-helper@v1.0.0
|
uses: actions-cool/emoji-helper@v1.0.0
|
||||||
with:
|
with:
|
||||||
type: 'issue'
|
type: 'issue'
|
||||||
token: ${{ steps.generate_token.outputs.token }}
|
token: ${{ steps.generate_token.outputs.token }}
|
||||||
emoji: 'eyes'
|
emoji: 'eyes'
|
||||||
|
|
||||||
|
|
4
.github/workflows/prerelease.yml
vendored
4
.github/workflows/prerelease.yml
vendored
|
@ -43,9 +43,7 @@ jobs:
|
||||||
echo "::set-output name=key_pwd::$KEY_PWD"
|
echo "::set-output name=key_pwd::$KEY_PWD"
|
||||||
- name: Run Gradle
|
- name: Run Gradle
|
||||||
run: |
|
run: |
|
||||||
./gradlew assemblePrerelease
|
./gradlew assemblePrerelease makeJar androidSourcesJar
|
||||||
./gradlew androidSourcesJar
|
|
||||||
./gradlew makeJar
|
|
||||||
env:
|
env:
|
||||||
SIGNING_KEY_ALIAS: "key0"
|
SIGNING_KEY_ALIAS: "key0"
|
||||||
SIGNING_KEY_PASSWORD: ${{ steps.fetch_keystore.outputs.key_pwd }}
|
SIGNING_KEY_PASSWORD: ${{ steps.fetch_keystore.outputs.key_pwd }}
|
||||||
|
|
|
@ -206,10 +206,28 @@ task androidSourcesJar(type: Jar) {
|
||||||
from android.sourceSets.main.java.srcDirs//full sources
|
from android.sourceSets.main.java.srcDirs//full sources
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this is used by the gradlew plugin
|
||||||
task makeJar(type: Copy) {
|
task makeJar(type: Copy) {
|
||||||
// after modifying here, you can export. Jar
|
|
||||||
from('build/intermediates/compile_app_classes_jar/debug')
|
from('build/intermediates/compile_app_classes_jar/debug')
|
||||||
into('build') // output location
|
into('build')
|
||||||
include('classes.jar') // the classes file of the imported rack package
|
include('classes.jar')
|
||||||
dependsOn build
|
dependsOn('build')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dokkaHtml {
|
||||||
|
moduleName.set("Cloudstream")
|
||||||
|
dokkaSourceSets {
|
||||||
|
main {
|
||||||
|
sourceLink {
|
||||||
|
// Unix based directory relative path to the root of the project (where you execute gradle respectively).
|
||||||
|
localDirectory.set(file("src/main/java"))
|
||||||
|
|
||||||
|
// URL showing where the source code can be accessed through the web browser
|
||||||
|
remoteUrl.set(new URL(
|
||||||
|
"https://github.com/recloudstream/cloudstream/tree/master/app/src/main/java"))
|
||||||
|
// Suffix which is used to append the line number to the URL. Use #L for GitHub
|
||||||
|
remoteLineSuffix.set("#L")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue