Skip to content

Commit

Permalink
Update changesets, block automation on fork
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejewsky committed Nov 11, 2023
1 parent e9cde3a commit c46b4b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/changesets-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Extract branch name
id: extract_branch
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
uses: actions/checkout@v4
with:
sparse-checkout: ./.changeset

- name: Changeset file lookup
env:
GH_TOKEN: ${{ github.token }}
PR_BRANCH: ${{ steps.extract_branch.outputs.branch }}
PR_ID: ${{ github.event.number }}
run: |
files=$(gh pr diff "$PR_BRANCH" --name-only)
files=$(gh pr diff "$PR_ID" --name-only)
if [[ $files =~ \.changeset\/.*.md ]]; then
echo "Changesets found!"
else
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ concurrency:
jobs:
prepare_variables:
runs-on: ubuntu-22.04
if: github.event.pull_request.head.repo.full_name == 'saleor/saleor-dashboard'
outputs:
POOL_NAME: ${{ steps.generate.outputs.POOL_NAME }}
POOL_INSTANCE: ${{ steps.generate.outputs.POOL_INSTANCE }}
Expand Down

0 comments on commit c46b4b9

Please sign in to comment.