From 9867d6569756697f95bceb344f9503becdc5dbbe Mon Sep 17 00:00:00 2001 From: phnx47-bot <78849906+phnx47-bot@users.noreply.github.com> Date: Sun, 24 Nov 2024 13:13:09 +0700 Subject: [PATCH] sync: synced file(s) with prom-client-net/prom-client-tmpl (#47) --- .github/workflows/labeled.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/labeled.yml diff --git a/.github/workflows/labeled.yml b/.github/workflows/labeled.yml new file mode 100644 index 0000000..0388866 --- /dev/null +++ b/.github/workflows/labeled.yml @@ -0,0 +1,25 @@ +name: Labeled + +on: + pull_request: + types: [labeled] + branches: + - "main" + +permissions: + pull-requests: write + contents: write + +jobs: + automerge: + name: Enable auto-merge + runs-on: ubuntu-24.04 + if: github.actor == 'phnx47-bot' && contains(github.event.pull_request.labels.*.name, 'sync') + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run command + run: gh pr merge -s --auto ${{ github.event.pull_request.number }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}