-
Notifications
You must be signed in to change notification settings - Fork 10
Change communicate-on-pull-requets-merged GitHub Action to be executed on push event
#29
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
base: master
Are you sure you want to change the base?
Change communicate-on-pull-requets-merged GitHub Action to be executed on push event
#29
Conversation
### Description Please check [this](fastlane/github-actions#29 (comment)) for a detailed description. Disabling a `pull-requests.yml` workflow is safe due to the [bot's backup](https://github.com/fastlane/issue-bot).
joshdholtz
left a comment
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.
Would it be easier if we just rename the secret to GITHUB_TOKEN in our secrets? 🤔
|
Hey @joshdholtz 👋
According to the documentation:
Taking that into account, I tried to add 💣 💥 If we were able to override |
### Description Please check [this](fastlane/github-actions#29 (comment)) for a detailed description. Disabling a `pull-requests.yml` workflow is safe due to the [bot's backup](https://github.com/fastlane/issue-bot).
|
Hey @joshdholtz 👋 Did you get a chance to have a look at these changes? 😊 |
### Description Please check [this](fastlane/github-actions#29 (comment)) for a detailed description. Disabling a `pull-requests.yml` workflow is safe due to the [bot's backup](https://github.com/fastlane/issue-bot).
iBotPeaches
left a comment
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 makes sense to me since target of the PR may not live in the fastlane org, so no secrets.
I updated it locally, scanned around and ran tests - all seems good.
Test Suites: 1 passed, 1 total
Tests: 5 passed, 5 total
Snapshots: 0 total
Time: 0.607s
Ran all test suites.
Since I adapted CI to block changes to lib - I'm guessing if this is brought up to date it'll fail CI. The CI system will update distribution files now, so if you want to go forward with merging this we can just merge in master and revert changes to lib.

Description
The
communicate-on-pull-request-mergedGitHub Action fails in most cases due to:It turns out that when a user opens a pull request on the base project from a fork, no secrets are provided to the workflow. According to the GitHub Actions documentation:
Workaround
As a workaround, to being able to use the secrets in a workflow, we can use a
pushevent to trigger the workflow. In the action itself, we can parse the detailed information about the push 💡Testing
A workflow file used for a manual testing:
The bot is set to my private account, that's why you see the comments from the author.
The unit tests have been updated too.
🎊 🎊