Skip to content

Commit 3a7bb26

Browse files
committed
adding conditionals
1 parent 6ffe0f7 commit 3a7bb26

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/Remove-Function-Name-Prefix.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- development
77

88
jobs:
9-
build:
9+
remove-function-prefix:
1010
name: remove prefixes
1111
runs-on: ubuntu-latest
1212
steps:
@@ -23,6 +23,7 @@ jobs:
2323
mv -n $file $justpath/$justfile
2424
fi
2525
done
26+
git log -1 --format='%H' > latestCommit.md
2627
git add .
2728
git config --global user.email "[email protected]"
2829
git config --global user.name "ActionBot"

.github/workflows/run-tests-on-pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
name: Atlas Functions and Triggers Example Tests
22

33
on:
4+
workflow_run:
5+
workflows: [remove-function-prefix]
6+
types: [completed]
47
pull_request:
58
paths:
69
- "snippets/**"
710

811
jobs:
9-
build:
12+
run-node-tests:
1013
name: Run Function and Trigger Tests
1114
runs-on: ubuntu-latest
12-
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1316
strategy:
1417
matrix:
1518
node-version: [18.x]

.github/workflows/zip-and-upload-to-s3-development.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: Zip and Upload to S3 for Development
22

33
on:
4+
workflow_run:
5+
workflows: [remove-function-prefix]
6+
types: [completed]
47
push:
58
branches:
69
- development
710

811
jobs:
912
zip-and-upload:
13+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1014
runs-on: ubuntu-latest
1115
steps:
1216
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)