@@ -49,16 +49,16 @@ jobs:
49
49
id : auto-bump
50
50
run : |
51
51
npm version ${{ steps.nyx.outputs.version }} --no-git-tag-version
52
- echo "version=${{ steps.nyx.outputs.version }}" >> $ GITHUB_OUTPUT
53
- echo "bump_type=${{ steps.nyx.outputs.bump }}" >> $ GITHUB_OUTPUT
52
+ echo "version=${{ steps.nyx.outputs.version }}" >> "${ GITHUB_OUTPUT}"
53
+ echo "bump_type=${{ steps.nyx.outputs.bump }}" >> "${ GITHUB_OUTPUT}"
54
54
55
55
- name : 📝 Manual version bump
56
56
if : github.event.inputs.version_type != 'auto'
57
57
id : manual-bump
58
58
run : |
59
59
npm version ${{ github.event.inputs.version_type }} --no-git-tag-version
60
- echo "version=$(node -p "require('./package.json').version")" >> $ GITHUB_OUTPUT
61
- echo "bump_type=${{ github.event.inputs.version_type }}" >> $ GITHUB_OUTPUT
60
+ echo "version=$(node -p "require('./package.json').version")" >> "${ GITHUB_OUTPUT}"
61
+ echo "bump_type=${{ github.event.inputs.version_type }}" >> "${ GITHUB_OUTPUT}"
62
62
63
63
- name : 🔏 Create signed commit
64
64
# Run if manual bump or if auto and new version was found
@@ -75,17 +75,17 @@ jobs:
75
75
76
76
# Create a new commit using GitHub API (GraphQL) to get signed commit
77
77
gh api graphql \
78
- -f query=' mutation($repo:String!,$branch:String!,$message:String!,$path:String!,$content:Base64String!,$oid:GitObjectID!){
78
+ -f query=" mutation(\ $repo:String!,\ $branch:String!,\ $message:String!,\ $path:String!,\ $content:Base64String!,\ $oid:GitObjectID!){
79
79
createCommitOnBranch(input:{
80
- branch:{repositoryNameWithOwner:$repo,branchName:$branch},
81
- message:{headline:$message},
82
- fileChanges:{additions:[{path:$path,contents:$content}]},
83
- expectedHeadOid:$oid
80
+ branch:{repositoryNameWithOwner:\ $repo,branchName:\ $branch},
81
+ message:{headline:\ $message},
82
+ fileChanges:{additions:[{path:\ $path,contents:\ $content}]},
83
+ expectedHeadOid:\ $oid
84
84
}){commit{url}}
85
- }' \
85
+ }" \
86
86
-f repo="${{ github.repository }}" \
87
87
-f branch="main" \
88
- -f message="🚀: bump $BUMP_TYPE version to $VERSION" \
88
+ -f message="🚀: bump ${ BUMP_TYPE} version to ${ VERSION} " \
89
89
-f path="package.json" \
90
90
-f content="$(base64 -w 0 package.json)" \
91
91
-f oid="$(git rev-parse HEAD)"
0 commit comments