From 4d4cd49bc47f8c62fb0aa718d81e2929cba3034a Mon Sep 17 00:00:00 2001 From: Artem Rys Date: Wed, 8 May 2024 14:47:27 +0200 Subject: [PATCH] fix: update dependencies to the latest possible --- .github/workflows/release.yml | 32 +---------------------------- .github/workflows/update_semver.yml | 15 ++++++++++++++ .releaserc | 15 -------------- README.md | 6 +++--- action.yml | 22 +++----------------- 5 files changed, 22 insertions(+), 68 deletions(-) create mode 100644 .github/workflows/update_semver.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 446d308..0e717ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,26 +1,9 @@ -# ######################################################################## -# Copyright 2023 Splunk Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ######################################################################## name: Release on: push: branches: - "main" - "develop" - tags: - - "v[0-9]+.[0-9]+.[0-9]+" pull_request: branches: - "main" @@ -31,11 +14,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - with: - python-version: "3.7" - name: Install actionlint run: | - bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.23/scripts/download-actionlint.bash) + bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.27/scripts/download-actionlint.bash) - uses: pre-commit/action@v3.0.1 release: @@ -60,14 +41,3 @@ jobs: passphrase: ${{ secrets.SA_GPG_PASSPHRASE }} extra_plugins: | @google/semantic-release-replace-plugin - - update-semver: - name: Move Repository semver tags - if: startsWith(github.ref, 'refs/tags/v') - needs: release - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Update semver - uses: haya14busa/action-update-semver@v1 diff --git a/.github/workflows/update_semver.yml b/.github/workflows/update_semver.yml new file mode 100644 index 0000000..7b47221 --- /dev/null +++ b/.github/workflows/update_semver.yml @@ -0,0 +1,15 @@ +name: Update Semver + +on: + push: + branches-ignore: + - '**' + tags: + - 'v*.*.*' + +jobs: + update-semver: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: splunk/addonfactory-update-semver@v1 diff --git a/.releaserc b/.releaserc index 1041f12..1732eb3 100644 --- a/.releaserc +++ b/.releaserc @@ -1,18 +1,3 @@ -# -# Copyright 2023 Splunk Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# { branches: [ diff --git a/README.md b/README.md index 95818bc..462c21f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # semantic-release-action -Repository for providing basic semantic-release library functionalities as a GitHub action. +Repository for providing basic semantic-release library functionalities as a GitHub Action. ## Inputs | Input Parameter | Required | Description | @@ -22,14 +22,14 @@ Repository for providing basic semantic-release library functionalities as a Git ## Example usage: ```yaml -# jobs section in GH actions workflow file +# jobs section in GitHub Actions workflow file jobs: release: name: Release new version runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: false persist-credentials: false diff --git a/action.yml b/action.yml index 1bcb779..1d24af0 100644 --- a/action.yml +++ b/action.yml @@ -1,19 +1,3 @@ -# ######################################################################## -# Copyright 2023 Splunk Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ######################################################################## - name: "Semantic release" description: "This tool performs semantic release or returns value of next release version" @@ -53,7 +37,7 @@ runs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: "18" + node-version: "20" - name: Set up GPG uses: crazy-max/ghaction-import-gpg@v6 if: ${{ (inputs.dry_run == 'false') && (inputs.gpg_private_key != '') && (inputs.passphrase != '') }} @@ -81,10 +65,10 @@ runs: if [[ ${{ inputs.dry_run }} == true ]] then echo "Running dry-run Semantic Release" - npx semantic-release@20 --dry-run + npx semantic-release@23 --dry-run else echo "Running Semantic Release" - npx semantic-release@20 + npx semantic-release@23 fi shell: bash env: