Skip to content

Commit fb0c574

Browse files
committed
Enhance deployment workflow for dolly-auth-local with logging and conditional execution #deploy-dolly-auth-local
1 parent 29bb9d8 commit fb0c574

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/app.dolly-auth-local.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,32 @@ name: dolly-auth-local
33
on:
44
push:
55
paths:
6-
- plugins/**
76
- .nais/dolly-auth-local.yml
87
- .github/workflows/app.dolly-auth-local.yml
8+
workflow_dispatch: {}
99

1010
jobs:
11+
start:
12+
name: Evaluate deploy
13+
if: github.event.pull_request.draft == false
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 5
16+
steps:
17+
- name: "Logging"
18+
run: |
19+
echo "ref: ${{ github.ref }}"
20+
echo "event: ${{ github.event_name }}"
21+
echo "commit: ${{ github.event.head_commit.message }}"
22+
outputs:
23+
do-deploy: ${{ github.event_name == 'workflow_dispatch' || (!contains(github.event.head_commit.message, '#nodeploy') && (github.ref == 'refs/heads/master' || contains(github.event.head_commit.message, '#deploy-dolly-auth-local'))) }}
24+
1125
deploy:
1226
name: Deploy dolly-auth-local
13-
if: github.event.pull_request.draft == false
27+
needs: start
28+
if: needs.start.outputs.do-deploy == 'true'
29+
concurrency: dolly-auth-local
1430
runs-on: ubuntu-latest
31+
timeout-minutes: 10
1532
permissions:
1633
contents: read
1734
id-token: write

0 commit comments

Comments
 (0)