Skip to content

pr num v2

pr num v2 #33

Workflow file for this run

on: [push]
jobs:
print_pr_number:
runs-on: ubuntu-latest
name: Print PR number
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Get Pull Request Number
id: pr
run: echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo "PR ${{ steps.pr.outputs.pull_request_number }}"
build_app:
runs-on: ubuntu-latest
environment: development
name: Build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: NPM install
run: npm ci
- name: Build App
env:
ZE_SECRET_TOKEN: ${{ secrets.ZE_SECRET_TOKEN }}
ZE_API: ${{ vars.ZE_API }}
ZE_API_GATE: ${{ vars.ZE_API_GATE }}
run: |
cd zephyr-examples/create-mf-app-rspack
npm ci
npm run build
- name: Zephyr deploy summary
uses: ./ # Uses an action in the root directory
id: zephyr
with:
application_uid: create-mf-app-rspack-host.zephyr-ci.opavlovskyi