🔄 synced local '.github/' with remote 'repo-template/.github/'
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// Based off of https://github.com/overextended/ox_lib/blob/master/.github/actions/bump-manifest-version.js
|
||||
const fs = require('fs')
|
||||
|
||||
const version = process.env.TGT_RELEASE_VERSION
|
||||
@@ -6,6 +5,10 @@ const newVersion = version.replace('v', '')
|
||||
|
||||
const manifestFile = fs.readFileSync('fxmanifest.lua', {encoding: 'utf8'})
|
||||
|
||||
const newFileContent = manifestFile.replace(/\bversion\s+(.*)$/gm, `version '${newVersion}'`)
|
||||
let newFileContent = manifestFile.replace(/\bversion\s+(.*)$/gm, `version '${newVersion}'`)
|
||||
|
||||
fs.writeFileSync('fxmanifest.lua', newFileContent)
|
||||
if (newFileContent == manifestFile) {
|
||||
newFileContent = manifestFile.replace(/\bgame\s+(.*)$/gm, `game 'gta5'\nversion '${newVersion}'`);
|
||||
}
|
||||
|
||||
fs.writeFileSync('fxmanifest.lua', newFileContent)
|
||||
Reference in New Issue
Block a user