Skip to content

CSS Grid chip layout with dimension rows and reordering #5

CSS Grid chip layout with dimension rows and reordering

CSS Grid chip layout with dimension rows and reordering #5

Workflow file for this run

name: fork-check
on:
pull_request_target:
types: [opened, reopened]
jobs:
block-fork-pr:
if: github.event.pull_request.head.repo.fork == true
runs-on: ubuntu-latest
steps:
- name: Comment and close fork PR
uses: actions/github-script@v7
with:
script: |
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: 'This PR was opened from a fork. PRs must be opened from branches on the upstream repository so that CI workflows have access to required secrets and variables.\n\nPlease push your branch to this repository and open a new PR.\n\nClosing this PR automatically.'
});
await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
state: 'closed'
});