Skip to content

Commit

Permalink
ci: Update upload/download artifact actions
Browse files Browse the repository at this point in the history
- Also remove GH_TOKEN secret since I don't think its needed anymore.
  • Loading branch information
alexstojda committed Jul 24, 2023
1 parent bcc5e1f commit 41bb0bc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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]
Expand Down Expand Up @@ -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]"
Expand Down

0 comments on commit 41bb0bc

Please sign in to comment.