on:
  pull_request:
    types: [closed]
name: Post release notes
jobs:
  postReleaseNotes:
    name: Post release notes
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
      if: github.event.pull_request.merged
    - name: Extract release notes
      id: extract
      uses: lee-dohm/extract-release-notes@master
      if: "github.event.pull_request.merged && github.event.pull_request.user.type != 'Bot'"
    - name: Post release notes
      uses: ./.github/actions/post-release-notes
      if: github.event.pull_request.merged && job.steps.extract.status == success()
      env:
        ATOM_TWEAKS_API_KEY: ${{ secrets.ATOM_TWEAKS_API_KEY }}

on:
  pull_request:
    types: [closed]
name: Post release notes
jobs:
  postReleaseNotes:
    name: Post release notes
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1.0.0
      with:
        ref: refs/heads/${{ github.head_ref }}
      if: github.event.pull_request.merged
    - name: Extract release notes
      id: extract
      uses: lee-dohm/extract-release-notes@master
      if: "github.event.pull_request.merged && github.event.pull_request.user.type != 'Bot'"
    - name: Post release notes
      uses: ./.github/actions/post-release-notes
      if: github.event.pull_request.merged && job.steps.extract.status == success()
      env:
        ATOM_TWEAKS_API_KEY: ${{ secrets.ATOM_TWEAKS_API_KEY }}

Use head ref for checkout
Use head ref for checkout
