From 1879a0d9528a8abad97fa3a3c5c8e638261551f4 Mon Sep 17 00:00:00 2001 From: shellscape Date: Mon, 18 Sep 2023 20:48:45 -0400 Subject: [PATCH] chore(repo): fix branch targets and checkout in workflows --- .github/workflows/release.yml | 11 ++++++----- .github/workflows/validate.yml | 5 +---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de4fd663..871a1001 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,8 @@ on: push: branches: - main - + tags-ignore: + - '*-v*' jobs: release: if: | @@ -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 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index f1227fa2..a309ba2f 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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