Skip to content

Commit

Permalink
ci: merged regular and prerelease worflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Jul 25, 2023
1 parent 1202698 commit 13eb594
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 146 deletions.
136 changes: 0 additions & 136 deletions .github/workflows/ci-pr-prerelease.yml

This file was deleted.

19 changes: 12 additions & 7 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
workflow_dispatch:
pull_request:
types: [opened, edited, synchronize, reopened]
branches-ignore:
- prerelease/spring[2-9][0-9]
- prerelease/summer[2-9][0-9]
- prerelease/winter[2-9][0-9]

# Workflow environment variables
env:
# Is the PR base branch a prerelease branch
IS_PRERELEASE: ${{ startsWith(github.event.pull_request.base.ref, 'prerelease/') }}

# Jobs to be executed
jobs:
Expand Down Expand Up @@ -128,8 +129,14 @@ jobs:
- name: 'Authenticate Dev Hub'
run: sf org login sfdx-url -f ./DEVHUB_SFDX_URL.txt -a devhub -d

# Create prerelease scratch org
- name: 'Create prerelease scratch org'
if: env.IS_PRERELEASE
run: sf org create scratch -f config/project-scratch-def.json -a scratch-org -d -y 1 --release=preview

# Create scratch org
- name: 'Create scratch org'
if: !env.IS_PRERELEASE
run: sf org create scratch -f config/project-scratch-def.json -a scratch-org -d -y 1

# Deploy source to scratch org
Expand All @@ -146,9 +153,7 @@ jobs:

# Wait for XP Cloud activation
- name: 'Wait for two min for XP Cloud activation'
uses: maddox/actions/sleep@master
with:
args: 120
run: sleep 120s

# Publish XP Cloud site
- name: 'Publish XP Cloud site'
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ jobs:

# Wait for XP Cloud activation
- name: 'Wait for two min for XP Cloud activation'
uses: maddox/actions/sleep@master
with:
args: 120
run: sleep 120s

# Publish XP Cloud site
- name: 'Publish XP Cloud site'
Expand Down

0 comments on commit 13eb594

Please sign in to comment.