Skip to content

Fork Sync: Update from parent repository #21

Fork Sync: Update from parent repository

Fork Sync: Update from parent repository #21

---
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 }}