Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update github actions dependencies #26

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build-geo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
IMAGE_NAME: ghcr.io/eukarya-inc/plateau-view-3.0/plateauview-geo:latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- 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: Build and load docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ./geo
platforms: linux/amd64
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Save docker image
run: docker save ${{ env.IMAGE_NAME }} | gzip > plateauview-geo.tar.gz
- name: Save image to artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: plateauview-geo
path: plateauview-geo.tar.gz
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
IMAGE_NAME: ghcr.io/eukarya-inc/plateau-view-3.0/plateauview-api:latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- 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: Download extension artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3
if: ${{ inputs.local != 'true' }}
with:
workflow_conclusion: ""
Expand All @@ -30,14 +30,14 @@ jobs:
check_artifacts: true
search_artifacts: true
- name: Download extension artifact from the previous job
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
if: ${{ inputs.local == 'true' }}
with:
name: extension
path: server

- name: Build and load docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ./server
platforms: linux/amd64
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Save docker image
run: docker save ${{ env.IMAGE_NAME }} | gzip > plateauview-api.tar.gz
- name: Save imaged to artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: plateauview-api
path: plateauview-api.tar.gz
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
IMAGE_NAME: ghcr.io/eukarya-inc/plateau-view-3.0/plateauview-api-worker:latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- 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: Build and load docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ./worker
platforms: linux/amd64
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Save docker image
run: docker save ${{ env.IMAGE_NAME }} | gzip > plateauview-api-worker.tar.gz
- name: Save image to artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: plateauview-api-worker
path: plateauview-api-worker.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-extension-version-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global pull.rebase false
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Update version
id: version
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
run:
working-directory: extension
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- 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@v2
- 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 @@ -31,7 +31,7 @@ jobs:
- name: Build
run: yarn build
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: extension
path: extension/dist/**
6 changes: 3 additions & 3 deletions .github/workflows/ci-geo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
run:
working-directory: geo
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- 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 Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ jobs:
ci-server-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.54
working-directory: server
args: --timeout=5m
ci-server-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: server/go.sum
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
ci-tools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:

runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -57,7 +57,7 @@ jobs:
strip: true
working-directory: tools/plateau-view-tool
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.name }}
path: tools/plateau-view-tool/target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
Expand All @@ -72,8 +72,8 @@ jobs:
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: tools-artifacts
- name: Pack tools
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ jobs:
ci-worker-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.54
working-directory: worker
args: --timeout=5m
ci-worker-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: worker/go.sum
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:
worker: ${{ steps.worker.outputs.any_changed }}
build: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'main' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: changed files for extension
id: extension
uses: tj-actions/changed-files@v36
uses: tj-actions/changed-files@v43
with:
files: |
extension
Expand All @@ -44,7 +44,7 @@ jobs:
.github/workflows/deploy-extension-prod.yml
- name: changed files for server
id: server
uses: tj-actions/changed-files@v36
uses: tj-actions/changed-files@v43
with:
files: |
server
Expand All @@ -54,14 +54,14 @@ jobs:
.github/workflows/deploy-server-prod.yml
- name: changed files for tools
id: tools
uses: tj-actions/changed-files@v36
uses: tj-actions/changed-files@v43
with:
files: |
tools
.github/workflows/ci-tools.yml
- name: changed files for geo
id: geo
uses: tj-actions/changed-files@v36
uses: tj-actions/changed-files@v43
with:
files: |
geo
Expand All @@ -71,7 +71,7 @@ jobs:
.github/workflows/deploy-geo-prod.yml
- name: changed files for tiles
id: tiles
uses: tj-actions/changed-files@v36
uses: tj-actions/changed-files@v43
with:
files: |
tiles
Expand All @@ -81,7 +81,7 @@ jobs:
.github/workflows/deploy-tiles-prod.yml
- name: changed files for worker
id: worker
uses: tj-actions/changed-files@v36
uses: tj-actions/changed-files@v43
with:
since_last_remote_commit: true
files: |
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Dispatch deployment
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: deploy-extension-dev

Expand All @@ -166,7 +166,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Dispatch deployment
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: deploy-geo-dev

Expand All @@ -186,7 +186,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Dispatch deployment
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: deploy-server-dev

Expand All @@ -201,7 +201,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Dispatch deployment
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: deploy-tiles-dev

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-cms-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Download CMS web
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3
with:
github_token: ${{ secrets.GPT }}
repo: reearth/reearth-cms
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
rm reearth-cms-web.tar.gz
tar -zcvf reearth-cms-web.tar.gz reearth-cms-web
- name: Save as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: reearth-cms-web
path: reearth-cms-web.tar.gz
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Configure docker
run: gcloud auth configure-docker --quiet
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
Loading
Loading