diff --git a/.github/workflows/BuildAutomation.yml b/.github/workflows/BuildAutomation.yml new file mode 100644 index 0000000..b1f9315 --- /dev/null +++ b/.github/workflows/BuildAutomation.yml @@ -0,0 +1,15 @@ +name: Approve by automation + +on: + pull_request: + types: [opened, reopened] +jobs: + approve-pull-request: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: 'approve a pull request' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr review ${{ github.event.pull_request.number }} --approve --body "approved by automation" \ No newline at end of file