WIP: Build & Release

This commit is contained in:
Michał Zieliński
2025-02-12 15:56:34 +01:00
parent ce46044a4b
commit 876035f403
2 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
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);
}

View File

@@ -32,6 +32,12 @@ jobs:
- name: Set job_id
if: ${{ github.event.inputs.job_id == '' }}
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
uses: actions/github-script@v6
with: