Skip to content

Commit

Permalink
ci: update github actions dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Nov 15, 2024
1 parent 4a32f8d commit 901e75d
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 32 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
name: ${{ steps.info.outputs.name }}
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
- name: fetch tags
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: get latest web artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{ steps.app-token.outputs.token }}
workflow: ci.yml
Expand All @@ -92,7 +92,7 @@ jobs:
# This is for stable release with version tags
- name: Dowload latest changelog
if: needs.info.outputs.new_tag
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: release.yml
name: changelog-${{ needs.info.outputs.new_tag }}
Expand All @@ -116,18 +116,18 @@ jobs:
IMAGE_NAME: reearth/reearth-marketplace
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
echo "::set-output name=version::$VERSION"
echo "::set-output name=tags::$TAGS"
- name: Download web arfiacts
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{ steps.app-token.outputs.token }}
workflow: ci.yml
Expand All @@ -167,7 +167,7 @@ jobs:
- name: Extract
run: tar -xvf reearth-marketplace-web.tar.gz && mv reearth-marketplace-web server/web
- name: Build and load docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: ./server
platforms: ${{ steps.options.outputs.platforms }}
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
web: ${{ steps.web.outputs.any_changed }}
server: ${{ steps.server.outputs.any_changed }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get web changed files
id: web
uses: tj-actions/changed-files@v24
uses: tj-actions/changed-files@v45
with:
files: |
.github/workflows/ci.yml
Expand All @@ -36,7 +36,7 @@ jobs:
.eslintignore
- name: Get server changed files
id: server
uses: tj-actions/changed-files@v24
uses: tj-actions/changed-files@v45
with:
files: |
.github/workflows/ci.yml
Expand All @@ -55,14 +55,14 @@ jobs:
run:
working-directory: web
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -76,7 +76,7 @@ jobs:
- name: Test
run: yarn coverage
- name: codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v5
with:
flags: web
- name: Check translations
Expand All @@ -88,7 +88,7 @@ jobs:
- name: Pack
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release'
run: mv dist reearth-marketplace-web && tar -zcvf reearth-marketplace-web.tar.gz reearth-marketplace-web
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release'
with:
name: reearth-marketplace-web
Expand All @@ -104,24 +104,24 @@ jobs:
working-directory: server
services:
mongo:
image: mongo:4.4-focal
image: mongo:6.0-focal
ports:
- 27017:27017
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.19
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.49
working-directory: server
Expand All @@ -131,7 +131,7 @@ jobs:
env:
REEARTH_MARKETPLACE_DB: mongodb://localhost
- name: codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v5
with:
flags: server
file: coverage.txt
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: get latest web artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{ steps.app-token.outputs.token }}
workflow: ci.yml
Expand All @@ -32,11 +32,11 @@ jobs:
search_artifacts: true
- name: Extract
run: tar -xvf reearth-marketplace-web.tar.gz
- uses: google-github-actions/auth@v0
- uses: google-github-actions/auth@v2
with:
credentials_json: "${{ secrets.GCP_SA_KEY }}"
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
- name: Deploy
run: gsutil -m -h "Cache-Control:no-store" rsync -x "^reearth_config\\.json$" -dr reearth-marketplace-web/ $GCS_DEST
deploy_server:
Expand All @@ -52,18 +52,18 @@ jobs:
with:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- uses: google-github-actions/auth@v0
- uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
# with:
# workload_identity_provider: ${{ env.GCP_WORKLOAD_IDENTITY_PROVIDER }}
# service_account: ${{ env.GCP_SERVICE_ACCOUNT }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
- name: Configure docker
run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet
- name: Download server arfiacts
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{ steps.app-token.outputs.token }}
workflow: build.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
pr_title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ignoreLabels: meta
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
git config --global user.name $GH_APP_USER
git config --global pull.rebase false
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -42,7 +42,7 @@ jobs:
repo: ${{ github.repository }}
latest: CHANGELOG_latest.md
- name: Upload latest CHANGELOG
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: changelog-${{ steps.changelog.outputs.version }}
path: CHANGELOG_latest.md
Expand Down

0 comments on commit 901e75d

Please sign in to comment.