Skip to content

Commit

Permalink
chore(repo): fix branch targets and checkout in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Sep 19, 2023
1 parent c362cef commit 1879a0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches:
- main

tags-ignore:
- '*-v*'
jobs:
release:
if: |
Expand All @@ -18,10 +19,10 @@ jobs:

steps:
- name: Checkout Commit
uses: actions/checkout@v1

- name: Checkout Main
run: git branch -f main origin/main
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 10

- name: Setup Node
uses: actions/setup-node@v3
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ jobs:

steps:
- name: Checkout Commit
uses: actions/checkout@v1

- name: Checkout Main
run: git branch -f main origin/main
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
Expand Down

0 comments on commit 1879a0d

Please sign in to comment.