File tree Expand file tree Collapse file tree 3 files changed +14
-161
lines changed Expand file tree Collapse file tree 3 files changed +14
-161
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
inputs :
6
6
level :
7
- description : The level of release to be used.
7
+ description : ' The level of release to be used.'
8
8
type : choice
9
9
options :
10
- - patch
11
- - minor
12
- - major
10
+ - ' patch'
11
+ - ' minor'
12
+ - ' major'
13
13
default : ' patch'
14
14
required : true
15
+ # Disable permissions for all available scopes by default.
16
+ # Any needed permissions should be configured at the job level.
17
+ permissions : {}
15
18
16
19
jobs :
17
20
18
- # This job is used to extract the branch name from the pull request or branch.
19
- setup :
20
- name : Setup
21
- runs-on : ubuntu-latest
22
- outputs :
23
- branch : ${{ steps.extract_branch.outputs.branch }}
24
- steps :
25
- - name : Extract branch name
26
- shell : bash
27
- run : echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
28
- id : extract_branch
29
-
30
21
# This job runs the newfold module-prep-release workflow for this module.
31
22
prep-release :
32
23
name : Prepare Release
33
- needs : setup
34
- uses : newfold-labs/workflows/.github/workflows/module-prep-release.yml@add/preprelease
24
+ permissions :
25
+ contents : write
26
+ pull-requests : write
27
+ uses : newfold-labs/workflows/.github/workflows/reusable-module-prep-release.yml@main
35
28
with :
36
29
module-repo : ${{ github.repository }}
37
- module-branch : ${{ needs.setup.outputs.branch }}
30
+ module-branch : ' trunk '
38
31
level : ${{ inputs.level }}
39
- secrets : inherit
32
+ json-file : ' package.json'
33
+ php-file : ' bootstrap.php'
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments