-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 987 Bytes
/
gitflow.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
---
name: Git Flow
on:
# Run on any pull request, or any push of a branch (avoiding pushing of
# tags).
pull_request:
branches:
- '*'
- '**'
push:
branches:
- '*'
- '**'
tags:
- '!*' # This excludes all tags
jobs:
GitFlow:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Retrieve Release Candidate Name
id: version
run: echo "RELEASE_CANDIDATE_TAG=$( make tag )" >> $GITHUB_OUTPUT
- name: Git Flow Action
uses: cbdq-io/gitflow-action@v1
env:
# Setting this environment variable means we can debug by re-running
# workflows and ticking "Enable debug logging".
ACTIONS_RUNNER_DEBUG: ${{ runner.debug }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
with:
# Set the release candidate to be the output of the previous step.
release-candidate: ${{ steps.version.outputs.RELEASE_CANDIDATE_TAG }}