From 28be3f1306ba45307d3d2be941ffbd6b4495a39e Mon Sep 17 00:00:00 2001 From: Samantha Dawley Date: Wed, 4 Jan 2023 03:08:12 -0800 Subject: [PATCH] Update GH actions to use tasks using Node 16 (#21874) * Update GH actions to use tasks using Node 16 Signed-off-by: sdawley * Update node version to 16 Signed-off-by: sdawley * delete release-changelog.yml as no longer used delete release-changelog.yml as no longer used (release notes generated by hand now) * Delete release-changelog.yml * Update .github/workflows/next-build.yml * Update .github/workflows/typescript-publish.yml * Update .github/workflows/release.yml Signed-off-by: sdawley Co-authored-by: Nick Boldt --- .../contributing-repositories-check.yml | 2 +- .github/workflows/next-build.yml | 12 +-- .github/workflows/release-changelog.yml | 81 ------------------- .github/workflows/release.yml | 16 ++-- .github/workflows/typescript-publish.yml | 4 +- 5 files changed, 17 insertions(+), 98 deletions(-) delete mode 100644 .github/workflows/release-changelog.yml diff --git a/.github/workflows/contributing-repositories-check.yml b/.github/workflows/contributing-repositories-check.yml index d28c75749cb..b7e9355f43f 100644 --- a/.github/workflows/contributing-repositories-check.yml +++ b/.github/workflows/contributing-repositories-check.yml @@ -22,7 +22,7 @@ jobs: check-contributing-up-to-date: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 name: Checkout che-theia source code - name: check run: | diff --git a/.github/workflows/next-build.yml b/.github/workflows/next-build.yml index c7a468135e5..f66791428e7 100644 --- a/.github/workflows/next-build.yml +++ b/.github/workflows/next-build.yml @@ -16,31 +16,31 @@ on: - main jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Cache local Maven repository - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'adopt' java-version: '11.0.11+9' - name: Login to docker.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} registry: docker.io - name: Login to quay.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} diff --git a/.github/workflows/release-changelog.yml b/.github/workflows/release-changelog.yml deleted file mode 100644 index 5d737272ca2..00000000000 --- a/.github/workflows/release-changelog.yml +++ /dev/null @@ -1,81 +0,0 @@ -# -# Copyright (c) 2021 Red Hat, Inc. -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# - -name: Release changelog - -on: - workflow_dispatch: - inputs: - version: - description: 'The version that is going to be released. Should be in format 7.y.z' - required: true - default: '' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Set up GH checkout and tokens - run: | - git config --global user.name "Mykhailo Kuznietsov" - git config --global user.email "mkuznets@redhat.com" - git config --global push.default matching - export GITHUB_TOKEN=${{ secrets.CHE_BOT_GITHUB_TOKEN }} - export CHE_BOT_GITHUB_TOKEN=${{ secrets.CHE_BOT_GITHUB_TOKEN }} - - name: Create changelog - id: generate-release-changelog - # wrapper for https://github.com/github-changelog-generator/github-changelog-generator - uses: heinrichreimer/github-changelog-generator-action@v2.2 - env: - GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} - CHANGELOG_GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} - with: - repo: eclipse/che - # output: CHANGELOG-next.md - dateFormat: "%Y-%m-%d" - onlyLastTag: "true" - stripHeaders: "true" - stripGeneratorNotice: "true" - maxIssues: 200 - verbose: true - releaseBranch: main # TODO: change to main - dueTag: ${{ github.event.inputs.version }} # all issues up to the current release tag - filterByMilestone: false # this requires that we get good at setting milestone when something is actually DONE rather than when we think it'll be done - pullRequests: false # only include issues, not PRs, since PRs span multiple repos and are too noisy to include - issuesWoLabels: false # no labels? no logged change - issues: true - # issueLineLabels: "ALL" # doesn't work - /usr/local/bundle/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/section.rb:52:in `get_string_for_issue': undefined method `line_labels_for' for # (NoMethodError) - compareLink: false - unreleased: true # show unreleased, but closed items - addSections: '{"sprint/current-sprint":{"prefix":"**Issues in Current Sprint:**","labels":["sprint/current-sprint"]}, "new¬eworthy":{"prefix":"**New and Noteworthy Issues:**","labels":["new¬eworthy"]}}' - excludeTags: '' # comma,delimited,list,of,tags - # includeLabels: '' - excludeLabels: "kind/release" - enhancementLabel: "Enhancements, Epics, and UX" - enhancementLabels: "kind/enhancement,kind/epic,kind/ux" - bugsLabel: "Bugs fixed" - bugLabels: "kind/bug" - token: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} - - name: Create GH Release - id: create_release - uses: ncipollo/release-action@v1.8.0 - env: - GITHUB_TOKEN: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} - with: - allowUpdates: true - body: ${{ steps.generate-release-changelog.outputs.changelog }} - draft: false - name: Eclipse Che ${{ github.event.inputs.version }} - omitBodyDuringUpdate: false - omitNameDuringUpdate: false - prerelease: false - tag: ${{ github.event.inputs.version }} - token: ${{ secrets.CHE_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46f11665da2..354485a2b2b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,16 +31,16 @@ on: jobs: build: name: Create Che E2E Tests Release - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: - node-version: '12' + node-version: '16' registry-url: 'https://registry.npmjs.org' scope: '@eclipse-che' - name: "Checkout source code" - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - @@ -65,20 +65,20 @@ jobs: fi - name: "Set up QEMU" - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: "Set up Docker Buildx" - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: "Docker quay.io Login" - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} - name: Login to docker.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: docker.io username: ${{ secrets.DOCKERHUB_USERNAME }} diff --git a/.github/workflows/typescript-publish.yml b/.github/workflows/typescript-publish.yml index 8b7d1e73bbc..c4754d8d0b0 100644 --- a/.github/workflows/typescript-publish.yml +++ b/.github/workflows/typescript-publish.yml @@ -23,13 +23,13 @@ jobs: publish: runs-on: ubuntu-22.04 steps: - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: '16' registry-url: 'https://registry.npmjs.org' scope: '@eclipse-che' - name: Clone source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: publish