Skip to content

Commit

Permalink
Triggering on branch creation & push
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicwest committed Nov 10, 2023
1 parent 14e82ca commit 9116394
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/admin-sandbox-qa-cd.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Admin CD

on:
pull_request:
create:
push:
branches:
- release/**
- main
- develop
paths:
- "packages/admin/**"
- "packages/gap-web-ui/**"
Expand All @@ -14,6 +15,9 @@ on:

jobs:
test:
# Need to check here as create event can't be filtered by branch name: https://github.com/orgs/community/discussions/54860
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release')

name: Test app

runs-on: ubuntu-latest
Expand Down Expand Up @@ -97,6 +101,9 @@ jobs:
run: yarn jest --selectProjects gap-web-ui --runInBand --ci

build:
# Need to check here as create event can't be filtered by branch name: https://github.com/orgs/community/discussions/54860
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release')

runs-on: ubuntu-latest

outputs:
Expand Down Expand Up @@ -149,6 +156,9 @@ jobs:
retention-days: 1

deploy:
# Need to check here as create event can't be filtered by branch name: https://github.com/orgs/community/discussions/54860
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release')

needs: [build, test]

environment: AWS
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/applicant-sandbox-qa-cd.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Applicant CD

on:
pull_request:
create:
push:
branches:
- release/**
- main
- develop
paths:
- "packages/applicant/**"
- "packages/gap-web-ui/**"
Expand All @@ -14,6 +15,9 @@ on:

jobs:
test:
# Need to check here as create event can't be filtered by branch name: https://github.com/orgs/community/discussions/54860
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release')

name: Test app

runs-on: ubuntu-latest
Expand Down Expand Up @@ -97,6 +101,9 @@ jobs:
run: yarn jest --selectProjects gap-web-ui --runInBand --ci

build:
# Need to check here as create event can't be filtered by branch name: https://github.com/orgs/community/discussions/54860
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release')

runs-on: ubuntu-latest

outputs:
Expand Down Expand Up @@ -149,6 +156,9 @@ jobs:
retention-days: 1

deploy:
# Need to check here as create event can't be filtered by branch name: https://github.com/orgs/community/discussions/54860
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release')

needs: [build, test]

environment: AWS
Expand Down

0 comments on commit 9116394

Please sign in to comment.