Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test changesets #4418

Closed
wants to merge 16 commits into from
5 changes: 5 additions & 0 deletions .changeset/bright-horses-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

test
13 changes: 6 additions & 7 deletions .github/workflows/changesets-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ jobs:
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
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)
echo "$PR_BRANCH"
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