From a17a8a0dd7d70baa740e475c6454b16e625278df Mon Sep 17 00:00:00 2001 From: Grzegorz Godlewski Date: Fri, 18 Oct 2024 17:15:06 +0200 Subject: [PATCH 1/2] Fix GH_ORG_EMAIL typo --- .github/workflows/dev-pr-close.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev-pr-close.yml b/.github/workflows/dev-pr-close.yml index 7ccc71ca..37430f6c 100644 --- a/.github/workflows/dev-pr-close.yml +++ b/.github/workflows/dev-pr-close.yml @@ -17,8 +17,11 @@ jobs: node-version: 20 cache: 'npm' - name: Git config + env: + GH_ORG_EMAIL: "WikiGDrive" + GH_ORG_NAME: "wikigdrive@wikigdrive.com" run: | - git config --global user.email "${GH_ORG_EMAI}" + git config --global user.email "${GH_ORG_EMAIL}" git config --global user.name "${GH_ORG_NAME}" - name: Apply version bump (major) if: contains(github.event.pull_request.labels.*.name, 'major') From b08366056777f18a2a6dc3077e4cc979d7b46494 Mon Sep 17 00:00:00 2001 From: Grzegorz Godlewski Date: Fri, 18 Oct 2024 17:26:46 +0200 Subject: [PATCH 2/2] Check labels --- .github/workflows/dev-pr-close.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev-pr-close.yml b/.github/workflows/dev-pr-close.yml index 37430f6c..418633b9 100644 --- a/.github/workflows/dev-pr-close.yml +++ b/.github/workflows/dev-pr-close.yml @@ -12,10 +12,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: mheap/github-action-required-labels@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - node-version: 20 - cache: 'npm' + mode: exactly + count: 1 + labels: 'major, minor, patch' - name: Git config env: GH_ORG_EMAIL: "WikiGDrive"