diff --git a/.github/actions/pull-requests/check-title/main.js b/.github/actions/pull-requests/check-title/main.js index 4cf86eb5cd..ddbba44804 100644 --- a/.github/actions/pull-requests/check-title/main.js +++ b/.github/actions/pull-requests/check-title/main.js @@ -12,7 +12,7 @@ debug(`Available challenge numbers: ${challenges}`) debug(`Available names of programming languages: ${languageNames}`) const challengesJoined = challenges.join('|') -const languageNamesJoined = languageNames.join('|') +const languageNamesJoined = languageNames.join('|').replaceAll('+', '\\+') // Regular expressions const challengeRegex = new RegExp(`#(${challengesJoined})`) diff --git a/.github/workflows/check-pull-request.yml b/.github/workflows/check-pull-request.yml index 87abaa73c4..92677d0246 100644 --- a/.github/workflows/check-pull-request.yml +++ b/.github/workflows/check-pull-request.yml @@ -31,6 +31,8 @@ jobs: steps: - name: Clone repository to virtual machine uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.base.ref }} - name: Check title of the pull request uses: ./.github/actions/pull-requests/check-title with: @@ -45,6 +47,8 @@ jobs: steps: - name: Clone repository to virtual machine uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.base.ref }} - name: Check committed files of the pull request id: changed-files uses: ./.github/actions/pull-requests/check-committed-files @@ -58,6 +62,8 @@ jobs: steps: - name: Clone repository to virtual machine uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.base.ref }} - name: Check committed file of the pull request uses: ./.github/actions/pull-requests/check-committed-file with: