[Test] Case: When only community analyzers are activated #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: List github events and other contexts | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
jobs: | |
debug: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: List contexts | |
run: | | |
echo "event->pr->head->sha" | |
echo ${{ github.event.pull_request.head.sha }} | |
echo "event->sha" | |
echo ${{ github.event.sha }} | |
echo "with env" | |
echo ${{ env.GITHUB_SHA }} | |
echo "expression inside" | |
echo ${{ github.event.sha || env.GITHUB_SHA }} | |
echo "expression outside" | |
echo ${{ github.event.sha }} || {{ env.GITHUB_SHA }} | |
- name: List github sha | |
run: | | |
echo $GITHUB_SHA | |
echo "Ref:" | |
echo $GITHUB_REF |