WIP: Build & Release
This commit is contained in:
@@ -26,5 +26,6 @@ module.exports = async ({ github, context, core, jobId }) => {
|
|||||||
|
|
||||||
function getValue(token) {
|
function getValue(token) {
|
||||||
const secrets = JSON.parse(process.env.SECRETS);
|
const secrets = JSON.parse(process.env.SECRETS);
|
||||||
return process.env[token] || secrets[token];
|
const variables = JSON.parse(process.env.VARIABLES);
|
||||||
|
return variables[token] || secrets[token];
|
||||||
}
|
}
|
||||||
1
.github/workflows/release-morska.yml
vendored
1
.github/workflows/release-morska.yml
vendored
@@ -56,6 +56,7 @@ jobs:
|
|||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
SECRETS: ${{ toJson(secrets) }}
|
SECRETS: ${{ toJson(secrets) }}
|
||||||
|
VARIABLES: ${{ toJson(vars) }}
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const script = require('./.github/workflows/buildScripts/replaceTokens.js');
|
const script = require('./.github/workflows/buildScripts/replaceTokens.js');
|
||||||
|
|||||||
Reference in New Issue
Block a user