Bump github/codeql-action from 2.1.6 to 3.27.4 #565
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: Debug pull_request Context | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
mytag: | |
description: 'branch, sha, tag' | |
required: true | |
default: main | |
workflow_call: | |
inputs: | |
mytag: | |
required: true | |
type: string | |
jobs: | |
show: | |
runs-on: ubuntu-latest | |
steps: | |
- name: show | |
run: | | |
# who trigger this worfflow , weizhoublue | |
echo "github.actor = ${{ github.actor }}" | |
# weizhoublue | |
echo "github.repository_owner = ${{ github.repository_owner }}" | |
# weizhoublue/github_action_test | |
echo "github.repository = ${{ github.repository }}" | |
# =============== pull_request or pull_request_target | |
# base_ref: available for pull_request or pull_request_target event , The base_ref or target branch of the pull request | |
# "github.base_ref = main" | |
echo "github.base_ref = ${{ github.base_ref }}" | |
# head_ref: available for pull_request or pull_request_target event, The head_ref or source branch of the pull request | |
# "github.head_ref = pr/welan/md-spell" | |
echo "github.head_ref = ${{ github.head_ref }}" | |
# pull_request or pull_request_target 都能获取到 | |
echo "github.event.pull_request.base.sha = ${{ github.event.pull_request.base.sha }}" | |
echo "github.event.pull_request.head.sha = ${{ github.event.pull_request.head.sha }}" | |
# 这个获取不到任何东西 ,即使 pull_request_target 也获取不到 | |
echo "github.event.pull_request_target.base.sha = ${{ github.event.pull_request_target.base.sha }}" | |
echo "github.event.pull_request_target.head.sha = ${{ github.event.pull_request_target.head.sha }}" | |
# =============== push | |
echo "github.event.push.ref = ${{ github.event.push.ref }}" | |
#The SHA of the most recent commit on ref before the push. | |
echo "github.event.push.before = ${{ github.event.push.before }}" | |
#The SHA of the most recent commit on ref after the push. | |
echo "github.event.push.after = ${{ github.event.push.after }}" | |
echo "github.event.push.head_commit = ${{ github.event.push.head_commit }}" | |
#Pushed commits are all commits that are included in the compare between the before commit and the after commit. | |
echo "github.event.push.commits = ${{ github.event.push.commits }}" | |
# ================= for all | |
# The commit SHA that triggered the workflow run. | |
echo "github.sha = ${{ github.sha }}" | |
# The branch or tag ref that triggered the workflow run. For branches this is the format refs/heads/<branch_name>, and for tags it is refs/tags/<tag_name> | |
echo "github.ref = ${{ github.ref }}" | |
# The branch or tag name that triggered the workflow run. | |
echo "github.ref_name = ${{ github.ref_name }}" | |
# The type of ref that triggered the workflow run. Valid values are branch or tag | |
echo "github.ref_type = ${{ github.ref_type }}" | |
# ================ | |
echo "github.event = ${{ github.event }}" | |
echo "github.event_name = ${{ github.event_name }}" | |
# ================ for workflow_dispatch | |
echo "github.event.inputs = ${{ github.event.inputs.mytag }} " | |
# ================ for workflow_call, only available in a reusable workflow | |
echo "inputs = ${{ inputs }}" | |
echo "inputs = ${{ inputs.mytag }}" | |