WIP: Build & Release
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
module.exports = async ({ github, context, core, jobId }) => {
|
module.exports = async ({ github, context, core, jobId }) => {
|
||||||
const files = require('fs').readdirSync(`./${jobId}/frontend`).filter(file => file.endsWith('.js'));
|
const files = require('fs').readdirSync(`./${jobId}/frontend/DiunaBI`).filter(file => file.endsWith('.js'));
|
||||||
console.log(files);
|
console.log(files);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
6
.github/workflows/release-morska.yml
vendored
6
.github/workflows/release-morska.yml
vendored
@@ -32,6 +32,12 @@ jobs:
|
|||||||
- name: Set job_id
|
- name: Set job_id
|
||||||
if: ${{ github.event.inputs.job_id == '' }}
|
if: ${{ github.event.inputs.job_id == '' }}
|
||||||
run: echo "job_id=${{ steps.get-build-id.outputs.job_id }}" >> $GITHUB_ENV
|
run: echo "job_id=${{ steps.get-build-id.outputs.job_id }}" >> $GITHUB_ENV
|
||||||
|
- name: Check job_id
|
||||||
|
run: |
|
||||||
|
if [ -z "${{ env.job_id }}" ]; then
|
||||||
|
echo "Error: job_id is empty"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
- name: Download frontend artifacts
|
- name: Download frontend artifacts
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user