Skip to content

Debug approve action #1

Debug approve action

Debug approve action #1

Workflow file for this run

# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
name: debugging
on: pull_request
jobs:
debugging:
runs-on: ubuntu-latest
steps:
- 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))