branch-names/.github/workflows/test.yml

38 lines
855 B
YAML
Raw Normal View History

2020-12-11 21:15:40 +08:00
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: Test branch-name
steps:
- name: Checkout
uses: actions/checkout@v2
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
2020-12-11 21:21:28 +08:00
- name: Run test
id: branch-name
uses: ./
- name: Show output
run:
echo "${{ steps.branch-name.outputs.base_ref_branch }}"
echo "${{ steps.branch-name.outputs.head_ref_branch }}"
echo "${{ steps.branch-name.outputs.ref_branch }}"
# - name: Test base ref output
# if: steps.branch-name.outputs.base_ref_branch
# run: |
# exit 1
# - name: Test head ref output
# run: |
# exit 1
# - name: Test ref output
# run: |
# exit 1