Generating a session ID
Generating a session ID in Node.js
BUILD_NAME="$(date -u +"%Y%m%d_%H%M%S")"
npx slnodejs config \
--tokenFile ./sltoken.txt \
--appName "myApp" \
--branchName "main" \
--buildName "$BUILD_NAME"- name: Generate SeaLights Build Session ID
env:
SL_TOKEN: ${{ secrets.SL_TOKEN }}
run: |
npx slnodejs config \
--token "$SL_TOKEN" \
--appName "${{ github.event.repository.name }}" \
--branchName "${{ github.ref_name }}" \
--buildName "${{ github.run_id }}"$BuildName = Get-Date -Format "yyyyMMdd_HHmmss"
npx slnodejs config `
--tokenFile .\sltoken.txt `
--appName "myApp" `
--branchName "main" `
--buildName $BuildNameUsing the session ID
Last updated
Was this helpful?

