generated from Flixclusive/providers-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): add pull request workflow
- Loading branch information
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Description | ||
|
||
Please include a summary of the changes and the related issue. Explain the motivation for the change. | ||
|
||
Fixes # (issue) | ||
|
||
## Checklist: | ||
|
||
- [ ] I have followed the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) guidelines for all my commits. | ||
- Example of a Conventional Commit message: `feat: add new feature to enhance user experience` | ||
- [ ] I have incremented the version of the provider I worked on in its respective `build.gradle.kts` file (if applicable). | ||
- [ ] I have included a changelog detailing any updates I made to a provider on its respective `build.gradle.kts` file (if applicable). | ||
- [ ] I have included my github profile as an author on the provider's respective `build.gradle.kts` file (if I am a new contributor). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: PR Build Check | ||
|
||
concurrency: | ||
group: "build pull request" | ||
cancel-in-progress: true | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
with: | ||
path: "src" | ||
|
||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Initialize Secrets | ||
env: | ||
SUPERSTREAM_FIRST_API: ${{ secrets.SUPERSTREAM_FIRST_API }} | ||
SUPERSTREAM_SECOND_API: ${{ secrets.SUPERSTREAM_SECOND_API }} | ||
SUPERSTREAM_THIRD_API: ${{ secrets.SUPERSTREAM_THIRD_API }} | ||
SUPERSTREAM_FOURTH_API: ${{ secrets.SUPERSTREAM_FOURTH_API }} | ||
run: | | ||
cd $GITHUB_WORKSPACE/src | ||
echo SUPERSTREAM_FIRST_API=$SUPERSTREAM_FIRST_API >> local.properties | ||
echo SUPERSTREAM_SECOND_API=$SUPERSTREAM_SECOND_API >> local.properties | ||
echo SUPERSTREAM_THIRD_API=$SUPERSTREAM_THIRD_API >> local.properties | ||
echo SUPERSTREAM_FOURTH_API=$SUPERSTREAM_FOURTH_API >> local.properties | ||
# Change `**/**/build/*.flx` if you've changed the providers file structure. | ||
- name: Build providers | ||
run: | | ||
cd $GITHUB_WORKSPACE/src | ||
chmod +x gradlew | ||
./gradlew make generateUpdaterJson |