mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-13 12:33:51 +00:00
build
This commit is contained in:
@ -16,14 +16,23 @@ function download_archive(owner, repo, ref) {
|
|||||||
try {
|
try {
|
||||||
const octokit = new Octokit();
|
const octokit = new Octokit();
|
||||||
const archive_format = "tarball";
|
const archive_format = "tarball";
|
||||||
octokit.repos.getArchiveLink({
|
const ref = "v1.0.0";
|
||||||
|
console.log("Calling API ...");
|
||||||
|
octokit.repos.getBranch({
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
archive_format,
|
|
||||||
ref
|
ref
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
});
|
});
|
||||||
|
// octokit.repos.getArchiveLink({
|
||||||
|
// owner,
|
||||||
|
// repo,
|
||||||
|
// archive_format,
|
||||||
|
// ref
|
||||||
|
// }).then(( { data }) => {
|
||||||
|
// console.log(data)
|
||||||
|
// });
|
||||||
//console.log(`Download Location : ${downloadLocation}`);
|
//console.log(`Download Location : ${downloadLocation}`);
|
||||||
//const tarBallPath = await tc.downloadTool(downloadLocation);
|
//const tarBallPath = await tc.downloadTool(downloadLocation);
|
||||||
//console.log(`Tarball Location : ${tarBallPath}`);
|
//console.log(`Tarball Location : ${tarBallPath}`);
|
||||||
|
@ -22,10 +22,10 @@ function run() {
|
|||||||
const repo = context.repo.repo;
|
const repo = context.repo.repo;
|
||||||
const ref = context.ref;
|
const ref = context.ref;
|
||||||
console.log(`We can even get context data, like the owner: ${owner}, repo: ${repo}, ref: ${ref}`);
|
console.log(`We can even get context data, like the owner: ${owner}, repo: ${repo}, ref: ${ref}`);
|
||||||
const tarBallPath = download_tar(owner, repo, ref);
|
const tarBallPath = yield download_tar(owner, repo, ref);
|
||||||
console.log(`Tar Path for copy : ${tarBallPath}`);
|
console.log(`Tar Path for copy : ${tarBallPath}`);
|
||||||
const specFile = core.getInput('specFile');
|
const specFile = core.getInput('specFile');
|
||||||
core.debug(`Hello ${specFile} from inside a container`);
|
console.log(`Hello ${specFile} from inside a container`);
|
||||||
// Get repo files from /github/workspace/
|
// Get repo files from /github/workspace/
|
||||||
yield exec.exec('ls -la /github/workspace');
|
yield exec.exec('ls -la /github/workspace');
|
||||||
// LOG: know current directory
|
// LOG: know current directory
|
||||||
|
Reference in New Issue
Block a user