From a5fba7d312aed33a5ca99179f5fc2fe413838d26 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Fri, 7 Jun 2024 10:46:02 -0700 Subject: [PATCH 1/3] ACAS-536: actions/github-script@v6 -> actions/github-script@v7 --- .github/workflows/tagger.yml | 2 +- .github/workflows/trigger-tag.yml | 2 +- .github/workflows/upmerge.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tagger.yml b/.github/workflows/tagger.yml index caa8cd7af..8039f89b4 100644 --- a/.github/workflows/tagger.yml +++ b/.github/workflows/tagger.yml @@ -30,7 +30,7 @@ jobs: echo "ACAS_REF=$(echo $INPUT_BRANCH_NAME)" >> $GITHUB_ENV fi - name: Get the latest commit of ${{ env.ACAS_REF }} and apply tag ${{ github.event.inputs.tag-name }} - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.ACAS_WORKFLOWS_TOKEN }} script: | diff --git a/.github/workflows/trigger-tag.yml b/.github/workflows/trigger-tag.yml index 63d4d2ab6..27a39dccd 100644 --- a/.github/workflows/trigger-tag.yml +++ b/.github/workflows/trigger-tag.yml @@ -28,7 +28,7 @@ jobs: echo "NEXT_TAG=$(echo $LAST_TAG | awk -F-dev -v OFS=-dev '{$NF += 1 ; print}')" >> $GITHUB_ENV # Trigger the build - name: Trigger the tagger workflow with branch ${{env.BRANCH_NAME}} and tag ${{ env.NEXT_TAG }} - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.ACAS_WORKFLOWS_TOKEN }} script: | diff --git a/.github/workflows/upmerge.yml b/.github/workflows/upmerge.yml index 0e05dc8c3..0a0e5f839 100644 --- a/.github/workflows/upmerge.yml +++ b/.github/workflows/upmerge.yml @@ -21,7 +21,7 @@ jobs: owner: [ mcneilco ] steps: - name: Create pull requests to upmerge branches to main - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.ACAS_WORKFLOWS_TOKEN }} script: | From caef9bb8e8127c0a48d6256ccbbd729fadca9186 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Fri, 7 Jun 2024 11:14:29 -0700 Subject: [PATCH 2/3] Bump actions versions for node 20 update from node 16 --- .github/workflows/docker-image.yml | 14 +++++++------- .github/workflows/trigger-tag.yml | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 9492314c2..0578ec1af 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -12,10 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Docker meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: # list of Docker images to use as base name for tags images: | @@ -23,11 +23,11 @@ jobs: - name: Set ACAS_TAG to ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} run: echo "ACAS_TAG=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}" >> $GITHUB_ENV - 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 }} @@ -54,7 +54,7 @@ jobs: echo "ACAS_CLIENT_REF=main" >> $GITHUB_ENV if: github.ref == 'refs/heads/master' - name: Checkout acasclient - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: mcneilco/acasclient path: acasclient @@ -101,7 +101,7 @@ jobs: echo "password=secret" >> ~/.acas/credentials echo "url=http://localhost:3000" >> ~/.acas/credentials - name: Set Up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v3 with: python-version: 3.8 - name: Display Python version diff --git a/.github/workflows/trigger-tag.yml b/.github/workflows/trigger-tag.yml index 27a39dccd..5c5cb6562 100644 --- a/.github/workflows/trigger-tag.yml +++ b/.github/workflows/trigger-tag.yml @@ -11,7 +11,7 @@ jobs: steps: # Checkout this repo - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Get branch name From 99603e610d4116c4157981aa6996cfc567b4c616 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Fri, 7 Jun 2024 11:24:18 -0700 Subject: [PATCH 3/3] Fix bad checking --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 0578ec1af..0de9dac82 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -101,7 +101,7 @@ jobs: echo "password=secret" >> ~/.acas/credentials echo "url=http://localhost:3000" >> ~/.acas/credentials - name: Set Up Python 3.8 - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Display Python version