-
-
Notifications
You must be signed in to change notification settings - Fork 323
51 lines (44 loc) · 1.02 KB
/
pr-master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: pr-and-master-workflow
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
# v*.*.*
env:
NODE_VERSION: 22
# NODE_OPTIONS: --openssl-legacy-provider
jobs:
vars:
runs-on: ubuntu-latest
outputs:
node_version: ${{ env.NODE_VERSION }}
steps:
- run: echo "Exposing env vars"
sites:
needs: vars
uses: ./.github/workflows/_deploy-sites.yml
with:
node_version: ${{ needs.vars.outputs.node_version }}
secrets: inherit
tests:
needs: vars
uses: ./.github/workflows/_tests.yml
with:
node_version: ${{ needs.vars.outputs.node_version }}
secrets: inherit
docker:
needs: vars
# We do not need to check out the repository to use the reusable workflow
uses: ./.github/workflows/_push-docker.yml
with:
push: false
secrets: inherit
electron:
needs: vars
uses: ./.github/workflows/_publish-electron.yml
with:
node_version: ${{ needs.vars.outputs.node_version }}
publish: false
secrets: inherit