Skip to content

Commit

Permalink
fix: validate changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Nov 26, 2024
1 parent 3070ff6 commit 3a25532
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ env:
jobs:
validate-title:
name: Validate PR Title
runs-on: buildjet-4vcpu-ubuntu-2204
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

check-packages-changed:
name: Assign project changed
runs-on: buildjet-4vcpu-ubuntu-2204
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.packages-changed.outputs.any_changed }}
steps:
Expand All @@ -39,13 +39,24 @@ jobs:
name: Validate PR Changeset
needs: check-packages-changed
if: ${{ github.head_ref != 'changeset-release/main' && needs.check-packages-changed.outputs.changed == 'true' }}
runs-on: buildjet-4vcpu-ubuntu-2204
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Debug Git Info
run: |
echo "Base ref: ${{ github.base_ref }}"
echo "Current branch: $(git branch --show-current)"
echo "All branches:"
git branch -a
- name: Fetch base branch
run: |
git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
- name: Setup Node
uses: FuelLabs/github-actions/setups/node@master
with:
Expand All @@ -57,7 +68,7 @@ jobs:

lint:
name: Lint & Type Check
runs-on: buildjet-4vcpu-ubuntu-2204
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
Expand Down

0 comments on commit 3a25532

Please # to comment.