WIP: Build & Release
This commit is contained in:
@@ -26,5 +26,6 @@ module.exports = async ({ github, context, core, jobId }) => {
|
||||
|
||||
function getValue(token) {
|
||||
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
|
||||
env:
|
||||
SECRETS: ${{ toJson(secrets) }}
|
||||
VARIABLES: ${{ toJson(vars) }}
|
||||
with:
|
||||
script: |
|
||||
const script = require('./.github/workflows/buildScripts/replaceTokens.js');
|
||||
|
||||
Reference in New Issue
Block a user