From d2896ee843ca4568f194ac93df1de6e7a533a360 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 18 Nov 2023 19:42:12 +0100 Subject: [PATCH] dsa Signed-off-by: Joas Schilling --- .../workflows/dependabot-approve-merge.yml | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/dependabot-approve-merge.yml b/.github/workflows/dependabot-approve-merge.yml index 90a957c85bc..ec07788b72c 100644 --- a/.github/workflows/dependabot-approve-merge.yml +++ b/.github/workflows/dependabot-approve-merge.yml @@ -12,25 +12,26 @@ on: - master - stable* -permissions: - contents: read - -concurrency: - group: dependabot-approve-merge-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - jobs: auto-approve-merge: runs-on: ubuntu-latest - permissions: - # for hmarr/auto-approve-action to approve PRs - pull-requests: write steps: - # GitHub actions bot approve - - run: | - echo '${{ github.ref }}' - echo github.ref - echo contains('/nextcloud/vue-', github.ref) - echo contains('/webrtc-adapter-', github.ref) - echo contains(fromJSON('["/nextcloud/vue-", "/webrtc-adapter-"]'), github.ref) + - name: Test ${{ github.ref }} + run: echo '${{ github.ref }}' + - name: Test contains('/nextcloud/vue-', github.ref) + run: echo contains('/nextcloud/vue-', github.ref) + - name: Test contains('/webrtc-adapter-', github.ref) + run: echo contains('/webrtc-adapter-', github.ref) + - name: Test contains(fromJSON('["/nextcloud/vue-", "/webrtc-adapter-"]'), github.ref) + run: echo contains(fromJSON('["/nextcloud/vue-", "/webrtc-adapter-"]'), github.ref) + + - name: JS + uses: actions/github-script@v5 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + console.log(github.ref) + console.log(contains('/nextcloud/vue-', github.ref)) + console.log(contains('/webrtc-adapter-', github.ref)) + console.log(contains(fromJSON('["/nextcloud/vue-", "/webrtc-adapter-"]'), github.ref))