Skip to content

Commit ee7c8d9

Browse files
committed
fix: Branch name output
update README.md
1 parent 602b320 commit ee7c8d9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ notifications:
2020
### `last_status`
2121
* Conclusion value of last workflow.
2222

23-
See https://docs.github.com/en/rest/reference/checks#create-a-check-run--parameters conclusion parameter.
23+
See https://docs.github.com/en/rest/checks/runs#create-a-check-run--parameters conclusion parameter.
2424

2525
## Example usage
2626

@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Get previous workflow status
33-
uses: Mercymeilya/last-workflow-status@v0.3
33+
uses: Mercymeilya/last-workflow-status@v0.3.1
3434
id: last_status
3535
with:
3636
github_token: ${{ secrets.GITHUB_TOKEN }}

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ runs:
2121
if [[ ${GITHUB_EVENT_NAME} == "pull_request" ]]
2222
then
2323
echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
24+
echo "Branch name: ${GITHUB_HEAD_REF}"
2425
else
2526
echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
27+
echo "Branch name: ${GITHUB_REF#refs/heads/}"
2628
fi
27-
echo "Branch name: ${GITHUB_HEAD_REF}"
2829
- name: Get workflow id
2930
shell: bash
3031
run: |

0 commit comments

Comments
 (0)