Skip to content

feat(deps-dev): Bump @seamapi/types from 1.292.2 to 1.294.1 in the seam group #189

feat(deps-dev): Bump @seamapi/types from 1.292.2 to 1.294.1 in the seam group

feat(deps-dev): Bump @seamapi/types from 1.292.2 to 1.294.1 in the seam group #189

Workflow file for this run

---
name: Automerge
on:
pull_request:
branches:
- main
jobs:
changes:
name: Get changes
runs-on: ubuntu-latest
timeout-minutes: 30
if: github.actor == 'dependabot[bot]'
permissions:
checks: read
outputs:
has_changes: ${{ steps.changed.outputs.any_changed == 'true' }}
is_generation_successful: ${{ steps.checks.outputs.conclusion == 'success' }}
steps:
- name: Wait for checks
uses: fountainhead/[email protected]
id: checks
with:
checkName: Generate code
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get changed generated files
id: changed
uses: tj-actions/changed-files@v44
with:
files: |
src/**
merge:
name: Merge
runs-on: ubuntu-latest
timeout-minutes: 30
needs: changes
if: needs.changes.outputs.has_changes == 'true'
steps:
- name: Approve pull request
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Merge pull request
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
close:
name: Close
runs-on: ubuntu-latest
timeout-minutes: 30
needs: changes
if: needs.changes.outputs.has_changes == 'false' && needs.changes.outputs.is_generation_successful == 'true'
steps:
- name: Close pull request
run: gh pr close "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}