-
Notifications
You must be signed in to change notification settings - Fork 53
30 lines (25 loc) · 1.07 KB
/
e2e-trigger.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
name: e2e-trigger
on:
deployment_status:
jobs:
e2e-trigger:
runs-on: ubuntu-latest
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && ${{ !contains(github.event.deployment_status.target_url, 'frontends-docs') }}
steps:
- name: target_url does NOT contains frontends-docs >> success
run: echo "Condition for deployment_status.target_url 🎉"
- name: Create folder for target_url file
run: mkdir -p ~/.cache/deployment_target/
- name: Write target_url to file for cache and reuse in different workflow
run: echo "${{ github.event.deployment_status.target_url }}" > ~/.cache/deployment_target/deployment_target.txt
- name: Cache Deployment Target URL file
uses: actions/cache@v3
id: cache-deployment-target
with:
path: |
~/.cache/deployment_target
key: deployment-target-${{ github.sha }}
restore-keys: |
deployment-target-${{ github.sha }}
deployment-target
deployment-target-url