Skip to content

Commit

Permalink
ci: fetch all git history and checkout main on release
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool committed Jul 22, 2022
1 parent e09d28c commit c500d3d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check if Tag on Main
run: |
git checkout main
branch=$(git branch main --contains ${{ github.ref }})
git checkout ${{ github.ref }}
if [ -z $branch ]; then
echo "Tag ${{ github.ref }} is not contained in the main branch."
exit 1
Expand Down Expand Up @@ -52,10 +56,14 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check if Tag on Main
run: |
git checkout main
branch=$(git branch main --contains ${{ github.ref }})
git checkout ${{ github.ref }}
if [ -z $branch ]; then
echo "Tag ${{ github.ref }} is not contained in the main branch."
exit 1
Expand Down Expand Up @@ -83,10 +91,14 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check if Tag on Main
run: |
git checkout main
branch=$(git branch main --contains ${{ github.ref }})
git checkout ${{ github.ref }}
if [ -z $branch ]; then
echo "Tag ${{ github.ref }} is not contained in the main branch."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ncaic",
"version": "0.3.8",
"version": "0.3.9",
"description": "A collection of tools for NCAIC competitors.",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit c500d3d

Please sign in to comment.