-
Notifications
You must be signed in to change notification settings - Fork 23
34 lines (32 loc) · 1.15 KB
/
merge.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
name: merge
# run this action on Push and on Pull Request
# to demonstrate the difference in commit message
on: [push, pull_request]
jobs:
cypress-run:
runs-on: ubuntu-20.04
name: e2e
steps:
# you can find all sorts of interesting stuff in the event object
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Checkout
uses: actions/checkout@v2
- name: Cypress run on ${{ github.event_name }}
uses: cypress-io/github-action@v2
with:
record: true
group: merge
# tag will be either "push" or "pull_request"
tag: ${{ github.event_name }}
env: lastName=Smith
env:
CYPRESS_firstName: Joe
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# - if the event is push, the title will be undefined
# and Cypress will get the commit message from Git information
# - if the event is pull_request, then we set the commit
# message to the pull request title
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}