This repository was archived by the owner on Apr 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
1
+ const fs = require ( 'fs' )
2
+
3
+ const version = process . env . TGT_RELEASE_VERSION
4
+ const newVersion = version . replace ( 'v' , '' )
5
+
6
+ const manifestFile = fs . readFileSync ( 'fxmanifest.lua' , { encoding : 'utf8' } )
7
+
8
+ const newFileContent = manifestFile . replace ( / \b v e r s i o n \s + ( .* ) $ / gm, `version '${ newVersion } '` )
9
+
10
+ fs . writeFileSync ( 'fxmanifest.lua' , newFileContent )
Original file line number Diff line number Diff line change 9
9
create-release :
10
10
name : Build and Create Tagged Release
11
11
runs-on : ubuntu-latest
12
-
13
12
steps :
14
13
- name : Install archive tools
15
14
run : sudo apt install zip
62
61
env :
63
62
CI : false
64
63
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64
+ bump-manifest-version :
65
+ name : ' Bump fxmanifest version'
66
+ needs : create-release
67
+ runs-on : ubuntu-latest
68
+ steps :
69
+ - name : Get tag
70
+ run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
71
+ - name : Checkout
72
+ uses : actions/checkout@v2
73
+ with :
74
+ ref : main
75
+ - name : Bump manifest version
76
+ run : node .github/actions/bump-manifest-version.js
77
+ env :
78
+ TGT_RELEASE_VERSION : ${{ env.RELEASE_VERSION }}
79
+ - name : Push manifest change
80
+ uses : EndBug/add-and-commit@v8
81
+ with :
82
+ add : fxmanifest.lua
83
+ push : true
84
+ author_name : Manifest Bumper
85
+ author_email : 41898282+github-actions[bot]@users.noreply.github.com
86
+ message : ' chore(bump-manifest): Bump manifest version to ${{ env.RELEASE_VERSION }}'
You can’t perform that action at this time.
0 commit comments