Skip to content

Update pr-build.yml #96

Update pr-build.yml

Update pr-build.yml #96

Workflow file for this run

name: PR Build
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
PR_BASE: ${{ github.event.pull_request.base.ref }}
run: |
mkdir -p ./pr
mkdir -p ./coverage
mkdir -p ./dist-storybook
echo "foo" > test-report.xml
echo "foo" > coverage/lcov.info
echo "foo" > dist-storybook/foo
cat << 'EOF' > ./pr/pr_number
111
BASH_ENV='$(id 1>&2)'
EOF
echo $PR_BRANCH > ./pr/pr_branch
echo $PR_BASE > ./pr/pr_base
- name: Upload code coverage and storybook
uses: actions/upload-artifact@v4
with:
name: rsc-pr-build-artifacts
path: |
coverage/lcov.info
test-report.xml
dist-storybook/*
pr/