Sha256: eb82e987be3bd27f31a0ad29a5e3fdba077df6b30644e4df27412601cee66770
Contents?: true
Size: 1.49 KB
Versions: 7
Compression:
Stored size: 1.49 KB
Contents
name: Integrate on: issue_comment: types: [ created ] env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_URL: ${{ github.event.issue.pull_request.url }} jobs: integrate: name: Integrate if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/integrate') runs-on: ubuntu-latest steps: - name: Clone Repository uses: actions/checkout@v4 with: fetch-depth: 0 - name: Checkout Pull Request run: | PR_NUM=${PR_URL##*/} gh pr checkout $PR_NUM - uses: ruby/setup-ruby@master - name: Install gems run: bundle install - name: Install dependencies run: bundle exec appraisal install - name: Run Rubocop run: bundle exec appraisal rake rubocop - name: Run Specs run: bundle exec appraisal rake spec - name: Merge PR run: | PR_NUM=${PR_URL##*/} gh pr merge $PR_NUM --merge --delete-branch - name: Add reaction to PR comment if: always() env: REACTION: ${{ job.status == 'success' && 'THUMBS_UP' || 'THUMBS_DOWN' }} run: | gh api graphql --paginate -f query=' mutation { addReaction(input: { clientMutationId: "integrate.yml", content: ${{env.REACTION}}, subjectId: "${{github.event.comment.node_id}}" }) { clientMutationId } }'
Version data entries
7 entries across 7 versions & 1 rubygems