mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-22 22:06:42 +00:00
commit
742c944814
300
dist/index.js
vendored
300
dist/index.js
vendored
File diff suppressed because one or more lines are too long
4
index.js
4
index.js
@ -46,6 +46,7 @@ async function run() {
|
|||||||
|
|
||||||
updateProjectVersion(filePath, newVersion);
|
updateProjectVersion(filePath, newVersion);
|
||||||
|
|
||||||
|
console.log(`Old version: ${version}. New version: ${newVersion}`)
|
||||||
console.log(`Old version: ${version}. New version: ${newVersion}`)
|
console.log(`Old version: ${version}. New version: ${newVersion}`)
|
||||||
|
|
||||||
const filePathRelatedToRoot = getProjectInfoFilePath(filePathInput, true);
|
const filePathRelatedToRoot = getProjectInfoFilePath(filePathInput, true);
|
||||||
@ -82,8 +83,8 @@ async function commitChanges(file, filePath) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const baseTreeSha = branchResponse.data.commit.sha;
|
const baseTreeSha = branchResponse.data.commit.sha;
|
||||||
console.log(typeof file, file)
|
|
||||||
// Create a new blob with the updated content
|
// Create a new blob with the updated content
|
||||||
|
console.log('Branch')
|
||||||
const blobResponse = await axios.post(
|
const blobResponse = await axios.post(
|
||||||
`https://api.github.com/repos/${owner}/${repo}/git/blobs`,
|
`https://api.github.com/repos/${owner}/${repo}/git/blobs`,
|
||||||
{
|
{
|
||||||
@ -160,6 +161,7 @@ async function commitChanges(file, filePath) {
|
|||||||
);
|
);
|
||||||
console.log('Branch Updated')
|
console.log('Branch Updated')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
core.setFailed(error);
|
core.setFailed(error);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "docker-container-action",
|
"name": "docker-container-action",
|
||||||
"version": "1.0.0",
|
"version": "1.8.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "docker-container-action",
|
"name": "docker-container-action",
|
||||||
"version": "1.0.0",
|
"version": "1.8.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.0",
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "docker-container-action",
|
"name": "docker-container-action",
|
||||||
"version": "1.7.0",
|
"version": "1.13.0",
|
||||||
"description": "This action prints \"Hello World\" or \"Hello\" + the name of a person to greet to the log.",
|
"description": "This action prints \"Hello World\" or \"Hello\" + the name of a person to greet to the log.",
|
||||||
"main": "index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "ncc -m -o dist build index.js",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user