Skip to content

Commit c51efe4

Browse files
authored
fix: update deploy and enforcer logic
fix: update deploy and enforcer logic
2 parents 6e196d6 + dd62e80 commit c51efe4

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/automatic-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ jobs:
1414
release-please:
1515
uses: RockefellerArchiveCenter/.github/.github/workflows/automatic-release.yml@base
1616
with:
17-
use-manifest: true
17+
use-manifest: true
18+
secrets: inherit

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ on:
44
push:
55
branches:
66
- development
7-
- base
7+
release:
8+
types: [published]
89
workflow_dispatch:
910

1011
jobs:
1112
deploy:
1213
runs-on: ubuntu-latest
1314
environment:
14-
name: ${{ github.ref_name }}
15+
name: ${{ github.event_name == 'release' && 'base' || github.ref_name }}
1516

1617
env:
1718
APPLICATION_NAME: aurora

.github/workflows/enforcer.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
name: 'Check Branch'
1+
name: Check Branch
22

33
on:
44
pull_request:
55
branches:
66
- base
77

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
812
jobs:
9-
check_branch:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Check branch
13-
if: github.head_ref != 'development'
14-
run: |
15-
echo "ERROR: You can only merge to base from the development branch."
16-
exit 1
13+
enforcer:
14+
uses: RockefellerArchiveCenter/.github/.github/workflows/enforcer.yml@base

0 commit comments

Comments
 (0)