From 55cf8c3d3ac2ff8516654567fe28b99c44950240 Mon Sep 17 00:00:00 2001 From: ignacio-circle <142390424+ignacio-circle@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:28:11 +0100 Subject: [PATCH] test --- .github/workflows/test.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..b9ce188 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,18 @@ +name: APPROVE + +on: pull_request # run on pull request events + +permissions: + pull-requests: write # grant write permission on the pull-requests endpoint +jobs: + approve: + runs-on: ubuntu-latest + + steps: + - run: echo "test" + - run: | # approve the pull request + curl --request POST \ + --url https://api.github.com/repos/${{github.repository}}/pulls/${{github.event.number}}/reviews \ + --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ + --header 'content-type: application/json' \ + -d '{"event":"APPROVE"}' \ No newline at end of file