test: branch name #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Store TSC Output | |
on: | |
push: | |
branches: | |
- main | |
- test-action | |
jobs: | |
store-tsc-output: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Run TypeScript Compiler | |
run: npx tsc --noEmit --pretty false > tsc_output.txt | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- name: Upload TSC Output as Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ steps.extract_branch.outputs.branch }}-tsc-output | |
path: tsc_output.txt |