-
Notifications
You must be signed in to change notification settings - Fork 123
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
Support github actions as service #136
Comments
Note: There is also a "coverallsapp" for github actions (https://github.com/coverallsapp/github-action/), but this does not allow my use-case. |
Any changes of this being merged? I am too interesting in pushing from GitHub actions |
Here's a run action that provides a consistent way to get the branch name for both
You can use this pattern to implement a correct |
@TheSnoozer --
Specifying the branch property doesn't seem to work for me. See, for example, my run action to execute the Coveralls Maven plugin:
Even though |
For anyone interested, there's still the problem of PR from forks. GitHub actions do no publish secrets on PR, so any solution only works for branches on the main repo. In my case, we opted to have a TravisCI job only for that. |
I finally got coveralls-maven-plugin to publish the master branch name by passing the information along using See here: derekm/pravega-cdi@2ca6cd3
I see, @abelsromero. That does present a problem in upstream PRs. I've been testing with PRs back into my own fork, and it is using my secrets. This must be why the project I work on has their tokens in their travis.yml file! |
I've been testing this further; you need two things critically:
That combination works (at least for PRs submitted within my team based on commits to branches in the main repo, which is what I care about especially). I was using exactly this workflow step to do it, with no preparatory steps (they're rolled into this one):
You might not want the |
…ch_to_java16 * 'develop' of github.com:eXist-db/exist: (50 commits) [bugfix] throw error in `repo:get-resource` if file does not exist [bugfix] Attempt to get Coveralls plugin working, see: trautonen/coveralls-maven-plugin#136 [refactor] Only log code-coverage against develop branch [bugfix] Specify the COVERALLS_TOKEN in the correct way for CI [doc] Add a note about explicitly closing connections [bugfix] Fix integration tests [feature] Add sql:close-connection#1 function to allow a user to explicitly close a SQL connection earlier to save resources [refactor] Cleanup context map accessor code Bump jetty.version from 9.4.40.v20210413 to 9.4.41.v20210516 Bump bifurcan from 0.2.0-alpha4 to 0.2.0-alpha6 [bugfix] Replace expired SSL certificate [refactor] Switch to standardised PKCS12 keystore type [security] Disable insecure SSL/TLS options [refactor] Indent output Bump jmh.version from 1.30 to 1.31 [bugfix] Fix dependency issue Fix dependencies [feature] Update to Commons Daemon 1.2.4 Closes eXist-db#3861 [feature] Enforce Compatible Java check at all start-up points of eXist-db [refactor] Remove dead code ...
@dkfellows - So the |
This reverts commit 85ef56c.
Shout out to @Anushka-shukla for providing a working solution for pull requests. @davidjgonzalez : yes, it's the Github Token that's needed. |
The parameter coveralls-maven-plugin/src/main/java/org/eluder/coveralls/maven/plugin/json/JsonWriter.java Line 77 in 8b8995e
The coveralls-action uses this bash script to construct the API Request URL for Github Actions: https://github.com/codecov/codecov-action/blob/d1f4b0126d40ebac033c5535c8ac351c25c441ea/codecov#L848 Not sure how to construct the same URL with the Maven plugin yet. |
See trautonen/coveralls-maven-plugin#136 (comment) Co-authored-by: Jean-Christophe Gay <jean-christophe.gay@vidal.fr> Co-authored-by: Thomas Boura <thomas.boura@vidal.fr>
Similar to all other services (e.g. the jenkins service), there should be a service that supports github actions.
Environment variables are documented in https://help.github.com/en/actions/automating-your-workflow-with-github-actions/using-environment-variables#default-environment-variables
Untested:
The text was updated successfully, but these errors were encountered: