[Workaround]ParticipantCount event backend fix #41
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
name: "Merge release" | |
on: | |
issue_comment: | |
types: [created] | |
workflow_dispatch: | |
jobs: | |
merge-comment: | |
name: Merge release to main | |
runs-on: macos-14 | |
if: github.event_name == 'workflow_dispatch' || (github.event.issue.pull_request && github.event.issue.state == 'open' && github.event.comment.body == '/merge release') | |
steps: | |
- name: Connect Bot | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }} | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/ruby-cache | |
- name: Merge | |
run: bundle exec fastlane merge_release author:"$USER_LOGIN" --verbose | |
env: | |
GITHUB_TOKEN: ${{ secrets.ADMIN_API_TOKEN }} # A token with the "admin:org" scope to get the list of the team members on GitHub | |
GITHUB_PR_NUM: ${{ github.event.issue.number }} | |
USER_LOGIN: ${{ github.event.comment.user.login != null && github.event.comment.user.login || github.event.sender.login }} |