Skip to content

Commit 0fdce3d

Browse files
committed
- adds branch name adjustments from PS
1 parent d080983 commit 0fdce3d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/type-summary.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,16 @@ jobs:
2222
- name: Build and run type summary project
2323
run: ./gradlew --no-daemon run --args='-o ${{ github.workspace }}/typeSummary.txt'
2424
working-directory: ./typesummary
25+
- name: Get branch name
26+
run: |
27+
$branchName = $Env:GITHUB_REF.replace("refs/heads/", "")
28+
echo "CURRENT_BRANCH=${branchName}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
29+
shell: pwsh
2530
- name: push
2631
uses: github-actions-x/[email protected]
2732
with:
2833
github-token: ${{ secrets.GITHUB_TOKEN }}
29-
push-branch: ${{ github.ref }}
34+
push-branch: ${{ env.CURRENT_BRANCH }}
3035
commit-message: '- updates types summary'
3136
force-add: 'true'
3237
files: typeSummary.txt

0 commit comments

Comments
 (0)