Skip to content

Commit

Permalink
test: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaup committed May 18, 2024
1 parent 802d7d6 commit 88a6f39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/tsc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@ jobs:
- name: Fetch target and PR branches
run: git fetch origin ${{ github.base_ref }}:${{ github.base_ref }} ${{ github.head_ref }}:${{ github.head_ref }}

- name: Extract target branch name
run: |
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
branch=${branch//\//} # This removes all slashes from the branch name
echo "branch=${branch}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Download artifact from target branch
id: download-artifact
uses: actions/download-artifact@v2
with:
name: ${{ github.base_ref }}-tsc-output
name: ${{ steps.extract_branch.outputs.branch }}-tsc-output
path: base-tsc-output
continue-on-error: true

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tsc-output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
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
run: |
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
branch=${branch//\//} # This removes all slashes from the branch name
echo "branch=${branch}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Upload TSC Output as Artifact
Expand Down

0 comments on commit 88a6f39

Please sign in to comment.