Skip to content

Commit f7727fc

Browse files
authored
Merge pull request #32 from IShix-g/release
feat: add outputs to workflow for branch and commit validation
2 parents c49e5f8 + 511c5f0 commit f7727fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/toc-generator_push.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ permissions:
1212
jobs:
1313
validate-branch:
1414
runs-on: ubuntu-22.04
15+
outputs:
16+
passed: ${{ steps.check-branch.outputs.passed }}
1517
steps:
1618
- name: Check if ref is not default branch
19+
id: check-branch
1720
run: |
1821
if [ "${{ github.event_name }}" == "pull_request" ]; then
1922
target_branch="${{ github.event.pull_request.base.ref }}"
@@ -34,8 +37,11 @@ jobs:
3437
3538
validate-commit-message:
3639
runs-on: ubuntu-22.04
40+
outputs:
41+
passed: ${{ steps.validate-message.outputs.passed }}
3742
steps:
3843
- name: Verify commit message contains...
44+
id: validate-message
3945
run: |
4046
commit_message="${{ github.event.head_commit.message }}"
4147

0 commit comments

Comments
 (0)