Skip to content

Commit

Permalink
Test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Aug 29, 2024
1 parent 969ebcf commit 3299c8c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/first.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: First Workflow

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Run tests
run: echo "Running tests..."
19 changes: 19 additions & 0 deletions .github/workflows/second.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Second Workflow

on:
workflow_run:
workflows: ["First Workflow"]
types:
- completed

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Check if previous workflow was successful
run: exit 1
if: ${{ github.event.workflow_run.conclusion != 'success' }}
- uses: actions/checkout@v2
- name: Deploy
run: echo "Deploying..."

0 comments on commit 3299c8c

Please sign in to comment.