Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
linglp committed Feb 26, 2024
1 parent 8ad2ee4 commit 66d4fd6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: test

on:
pull_request:
branches: ['*']
push:
branches: ['*']

concurrency: ci-${{ github.ref }}

jobs:
test-workflow:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
test-another-job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
6 changes: 4 additions & 2 deletions .github/workflows/trigger-profiler.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: profiler-run
on:
workflow_run:
workflows: ["aws-deploy"] # Trigger this workflow only after aws-deploy is completed
workflows: ["aws-deploy", "test"] # Trigger this workflow only after aws-deploy is completed
types: [completed]
workflow_dispatch: # Allow manually triggering the workflow
jobs:
trigger-profiler:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.cdk-deploy-dev.conclusion == 'success' }}
if: ${{ github.event.workflow_run.test-workflow.conclusion == 'success' }} && ${{ github.ref == 'refs/heads/develop-fix-workflow-trigger' }}
steps:
- name: Print environment variable
run: echo "${{ github.event.workflow_run.test-workflow.conclusion }}"
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
Expand Down

0 comments on commit 66d4fd6

Please sign in to comment.