I have some questions about GitHub actions
name: CI # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the master branch pull_request: branches: [ master ] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "deploy" deploy: # The type of runner that the job will run on runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout uses: actions/checkout@v2 - name: Add content to README.md run: echo 'New update' >> README.md
There’re two branches in my repo, the default one is
master and another is
dev, when I pull a request from
Which branch will be checkout here?
The following code works on which branch?
- name: Add content to README.md run: echo 'New update' >> README.md
How can I checkout the specified version?
Thank you so much.