-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.33 KB
/
front-development.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
name: Development
on:
pull_request:
workflow_dispatch:
jobs:
namer:
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.branch_name.outputs.branch }}
tag: ${{ steps.branch_name.outputs.tag }}
base_branch: ${{ steps.branch_name.outputs.base_branch }}
base_tag: ${{ steps.branch_name.outputs.base_tag }}
steps:
- name: Get tag & branch name
id: branch_name
run: |-
branch=${{ github.event.pull_request.head.ref }}
echo "branch=${branch}"
echo "branch=${branch}" >> $GITHUB_OUTPUT
tag="${branch////-}"
echo "tag=${tag}"
echo "tag=${tag}" >> $GITHUB_OUTPUT
base_branch=${{ github.event.pull_request.base.ref }}
echo "base_branch=${base_branch}"
echo "base_branch=${base_branch}" >> $GITHUB_OUTPUT
base_tag="${base_branch////-}"
echo "base_tag=${base_tag}"
echo "base_tag=${base_tag}" >> $GITHUB_OUTPUT
prepare:
uses: ./.github/workflows/common-prepare.yml
build:
needs:
- namer
- prepare
if: needs.prepare.outputs.xi_front_files == 'true'
uses: xi-effect/xi.actions/.github/workflows/docker-build.yml@main
with:
tag: front-${{ needs.namer.outputs.tag }}
base-tag: front-${{ needs.namer.outputs.base_tag }}
secrets: inherit