-
Notifications
You must be signed in to change notification settings - Fork 440
45 lines (40 loc) · 1.63 KB
/
debugging.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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:
- uses: mdecoleman/[email protected]
id: vars
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: echo ${{ steps.vars.outputs.branch }}
- name: Test ${{ github.ref }}
continue-on-error: true
run: echo '${{ github.ref }}'
- name: Test ${{ github.event.pull_request }}
continue-on-error: true
run: echo '${{ github.ref_name }}'
- name: Test contains('/nextcloud/vue-', github.ref)
continue-on-error: true
run: echo contains('/nextcloud/vue-', github.ref)
- name: Test contains('/webrtc-adapter-', github.ref)
continue-on-error: true
run: echo contains('/webrtc-adapter-', github.ref)
- name: Test contains(fromJSON('["/nextcloud/vue-", "/webrtc-adapter-"]'), github.ref)
continue-on-error: true
run: echo contains(fromJSON('["/nextcloud/vue-", "/webrtc-adapter-"]'), github.ref)
- name: JS
continue-on-error: true
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))