Merge pull request #3 from 5h4k4r/dev

Dev
This commit is contained in:
Shakar bakr 2023-09-20 14:10:49 +03:00 committed by GitHub
commit 742c944814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 285 deletions

300
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -46,6 +46,7 @@ async function run() {
updateProjectVersion(filePath, newVersion);
console.log(`Old version: ${version}. New version: ${newVersion}`)
console.log(`Old version: ${version}. New version: ${newVersion}`)
const filePathRelatedToRoot = getProjectInfoFilePath(filePathInput, true);
@ -82,8 +83,8 @@ async function commitChanges(file, filePath) {
);
const baseTreeSha = branchResponse.data.commit.sha;
console.log(typeof file, file)
// Create a new blob with the updated content
console.log('Branch')
const blobResponse = await axios.post(
`https://api.github.com/repos/${owner}/${repo}/git/blobs`,
{
@ -160,6 +161,7 @@ async function commitChanges(file, filePath) {
);
console.log('Branch Updated')
} catch (error) {
console.log(error)
core.setFailed(error);
}

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "docker-container-action",
"version": "1.0.0",
"version": "1.8.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "docker-container-action",
"version": "1.0.0",
"version": "1.8.0",
"license": "ISC",
"dependencies": {
"@actions/core": "^1.10.0",

View File

@ -1,9 +1,10 @@
{
"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.",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"build": "ncc -m -o dist build index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],