-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1000 Bytes
/
test4run-e2e-variable.yml
File metadata and controls
33 lines (31 loc) · 1000 Bytes
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
name: test4run-e2e-variable
on:
workflow_dispatch:
push:
branches: [ main, dev ]
jobs:
ci:
if: ${{ github.actor != 'dependabot[bot]' &&
(github.event.pull_request.head.repo.full_name == github.repository ||
github.event.pull_request.head.repo.full_name == '') }} # Check that PR not from forked repo and not from Dependabot
runs-on: ubuntu-20.04
outputs:
run-e2e: ${{ steps.run-e2e.outputs.result }}
steps:
- name: Check commit message for version number
id: run-e2e
run: |
if [[ "${{ github.event.head_commit.message }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]];
then
echo "result=false" >> $GITHUB_OUTPUT
else
echo "result=true" >> $GITHUB_OUTPUT
fi
platform-katalon-tests:
needs: 'ci'
if: ${{ github.ref == 'refs/heads/main' && always() }}
runs-on: ubuntu-20.04
steps:
- name: Check
run: |
echo "Variable is ${{ needs.ci.outputs.run-e2e }}"