-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for GitHub Actions #4059
Conversation
Something to check: if I change the workflow file in my PR, will it use the workflow file from my PR or from the branch it will merge into? If the first, it could be possible to change the workflow file to print |
The grammar on that bot isn't perfect |
- name: Create comment linking to the artifact | ||
uses: thollander/actions-comment-pull-request@1f25fabed60c3f141743c3a522529950a8fb2191 | ||
with: | ||
message: 'The APK was build successfuly. You can find it here: https://github.com/TobiGr/NewPipe/actions/runs/${{github.run_id}}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line needs to be changed
jobs: | ||
build: | ||
name: Build project & generate APK | ||
runs-on: ubuntu-18.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to use ubuntu
instead?
I suppose we should wait, then. |
Having an action without the depreciated |
TravisCI changed their pricing last month, giving public repos only 1000min/month https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing#building-on-a-public-repositories-only. I doubt it is enough with each build taking 6-7min, meaning ~150builds. Meaning the migration to GitHub actions would rise in importance |
Build PRs pointing to dev or master branch and create a comment linking to the APK download page.
@XiangRongLin Thanks for letting us know! I just rebased my commit. I'll try to find a solution for the mentioned problems. |
2e14881
to
79aed48
Compare
- uses: actions/checkout@v1 | ||
|
||
- name: set up JDK 1.8 | ||
uses: actions/setup-java@v1.4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to v1.4.3.
v.1.4.0 uses the vulnerable set-env
command.
I've created a pull request to just replace Travis: #5132 |
Closing in favour of #5132. See my comments regarding debug APKs in that thread. |
What is it?
Description of the changes in your PR
This enables GitHub Actions to work with PRs.
Build PRs pointing to dev or master branch and create a comment linking to the APK download page on success. Otherwise, the creator is notified (if enabled by them).
Example PR: TobiGr#7
ToDo
org.schabi.newpipe.HEAD
and app name is "NewPipe HEAD"Ideas
<!-- NO_APK_NOTIFICATION -->
is in (preferably at the end of) the PR description.TeamNewPipe/NewPipeExtractor
Fixes the following issue(s)
Agreement