generated from alexstojda/go-react-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Update upload/download artifact actions
- Also remove GH_TOKEN secret since I don't think its needed anymore.
- Loading branch information
1 parent
bcc5e1f
commit 41bb0bc
Showing
1 changed file
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
run: go vet ./... | ||
- name: Run backend tests | ||
run: make test-backend-cov | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: backend-reports | ||
path: reports | ||
|
@@ -53,7 +53,7 @@ jobs: | |
run: make generate-frontend | ||
- name: Run frontend tests | ||
run: make test-frontend | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: frontend-reports | ||
path: reports | ||
|
@@ -82,11 +82,11 @@ jobs: | |
# Disabling shallow clone is recommended for improving relevancy of reporting | ||
fetch-depth: 0 | ||
ref: ${{ github.ref == 'refs/heads/main' && 'main' || '' }} | ||
- uses: actions/download-artifact@v2 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: frontend-reports | ||
path: reports | ||
- uses: actions/download-artifact@v2 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: backend-reports | ||
path: reports | ||
|
@@ -107,7 +107,6 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_TOKEN }} | ||
- uses: docker/setup-buildx-action@v2 | ||
- name: Log in to the Container registry | ||
uses: docker/[email protected] | ||
|
@@ -141,8 +140,8 @@ jobs: | |
- name: Commit release | ||
if: ${{ steps.changelog.outputs.skipped == 'false' }} | ||
run: | | ||
git config --local user.name github-actions | ||
git config --local user.email github-actions@github.com | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
git add . | ||
git commit -m "chore(release): ${{ steps.changelog.outputs.tag }} [skip ci]" | ||
|