e2e-trigger #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |