Skip to content

e2e-trigger

e2e-trigger #22

Workflow file for this run

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