Skip to content

Commit

Permalink
feat(CI): Adjust fetch depth for tests and release actions
Browse files Browse the repository at this point in the history
The previous commit had the fetch depths backwards.  It pulled
all commits for tests where we only needed one and only one commit
for release where we need all (to generate a changelog and correctly
do semantic release).  This commit is being marked as a feature
to correctly release the last minor version.
  • Loading branch information
elpete committed Nov 6, 2020
1 parent ce5457a commit c901892
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java JDK
uses: actions/[email protected]
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java JDK
uses: actions/[email protected]
Expand All @@ -50,8 +48,6 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java JDK
uses: actions/[email protected]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java JDK
uses: actions/[email protected]
Expand Down Expand Up @@ -46,8 +44,10 @@ jobs:
# env:
# GA_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v2
# - name: Checkout Repository
# uses: actions/checkout@v2
# with:
# fetch-depth: 0

# - name: Setup Java JDK
# uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java JDK
uses: actions/[email protected]
Expand Down Expand Up @@ -49,6 +47,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Java JDK
uses: actions/[email protected]
Expand Down

0 comments on commit c901892

Please sign in to comment.