Fork Sync: Update from parent repository #21
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: Link Milestone | |
on: | |
pull_request_target: | |
branches: [main] | |
types: ['closed'] | |
jobs: | |
link-milestone: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
issues: write | |
steps: | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
# we cannot use go-version-file here because no repositories are checked out so there is no file to reference | |
go-version: '1.20.5' | |
- run: | | |
go install github.com/stephybun/link-milestone@latest | |
link-milestone | |
env: | |
PR_NUMBER: ${{ github.event.number }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_REPO: ${{ github.repository }} |