File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 22
22
DEV_VERSION_ENV_KEY : BEST_PRACTICES_VERSION_DEV
23
23
24
24
jobs :
25
- check-branch :
26
- runs-on : ubuntu-latest
27
- steps :
28
- - name : Check if the branch is main for workflow dispatches
29
- run : |
30
- if [ "${{ github.event_name }}" == "workflow_dispatch" ] && [ "${{ github.ref }}" != "refs/heads/main" ]; then
31
- echo "This workflow can only run on the main branch. Exiting."
32
- exit 0
33
- fi
34
- echo "Branch is main, proceeding with the job."
35
-
36
- - name : Continue with the action
37
- run : echo "Performing the main branch actions."
38
-
39
25
create-dev-version :
40
26
# Generate the dev version suffix based on the current date.
41
27
# Tag name:
42
28
# <version>.dev<yyyymmdd><iteration>
43
29
name : Create dev version string
44
- needs :
45
- - check-branch
46
30
runs-on : ubuntu-latest
47
31
outputs :
48
32
dev_version : ${{ steps.output-dev-version.outputs.dev_version }}
You can’t perform that action at this time.
0 commit comments