From 650f700d17303f8bfb5921e3f88226548fb86252 Mon Sep 17 00:00:00 2001 From: Nick Satterly Date: Tue, 7 Mar 2023 23:01:12 +0100 Subject: [PATCH] build(ci): update checkout action and remove deprecated set-output --- .github/workflows/analysis.yml | 2 +- .github/workflows/docker.yml | 7 ++----- .github/workflows/github-pages.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 6 +++--- 5 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index bdb8e85f..97f18b92 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index cc2f1fe7..2c7a0135 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -17,21 +17,18 @@ jobs: IMAGE_NAME: ${{ github.repository_owner }}/alerta-webui steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '14' - run: npm version - - name: Variables - id: vars - run: echo "::set-output name=SHORT_COMMIT_ID::$(git rev-parse --short HEAD)" - name: Build image id: docker-build run: >- docker build -t $IMAGE_NAME -t $REPOSITORY_URL/$IMAGE_NAME:$(cat VERSION) - -t $REPOSITORY_URL/$IMAGE_NAME:${{ steps.vars.outputs.SHORT_COMMIT_ID }} + -t $REPOSITORY_URL/$IMAGE_NAME:$(git rev-parse --short HEAD) -t $REPOSITORY_URL/$IMAGE_NAME:latest . - name: Docker Login uses: docker/login-action@v1 diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index bbd32e30..a2c698b0 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -11,7 +11,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '14' @@ -33,7 +33,7 @@ jobs: needs: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '14' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f052a21..a5ac575b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '14' @@ -35,7 +35,7 @@ jobs: needs: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '14' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc119e41..c37ea946 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '14' @@ -38,7 +38,7 @@ jobs: runs-on: ubuntu-latest steps: - id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '14' @@ -58,7 +58,7 @@ jobs: runs-on: ubuntu-latest steps: - id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '14'