mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-11 20:04:42 +00:00
Merge pull request #16 from StCyr/fix_15
update the gihub action dependencies
This commit is contained in:
10
package.json
10
package.json
@ -25,11 +25,11 @@
|
||||
},
|
||||
"homepage": "https://github.com/actions/container-toolkit-template#readme",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.0.0",
|
||||
"@actions/exec": "^1.0.0",
|
||||
"@actions/github": "^1.0.0",
|
||||
"@actions/io": "^1.0.0",
|
||||
"@actions/tool-cache": "^1.3.3",
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^5.1.1",
|
||||
"@actions/io": "^1.1.2",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"@octokit/rest": "^17.1.4",
|
||||
"@types/node": "^12.0.4",
|
||||
"typescript": "^3.5.1"
|
||||
|
@ -53,8 +53,12 @@ async function run() {
|
||||
const oldGitDir = process.env.GIT_DIR;
|
||||
process.env.GIT_DIR = '/github/workspace/.git';
|
||||
await exec.exec(`git archive --output=/github/home/rpmbuild/SOURCES/${name}-${version}.tar.gz --prefix=${name}-${version}/ HEAD`);
|
||||
await exec.exec(`ln -s /github/home/rpmbuild/SOURCES/${name}-${version}.tar.gz /github/home/rpmbuild/SOURCES/${name}.tar.gz`);
|
||||
process.env.GIT_DIR = oldGitDir;
|
||||
|
||||
// Installs build dependencies
|
||||
await exec.exec(`yum-builddep ${specFile.destFullPath}`);
|
||||
|
||||
// Execute rpmbuild , -ba generates both RPMS and SPRMS
|
||||
try {
|
||||
await exec.exec(
|
||||
|
Reference in New Issue
Block a user