Skip to content

Commit

Permalink
fix: update dependencies to the latest possible (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys authored May 8, 2024
1 parent 7fafbd2 commit 0dc22c8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 68 deletions.
32 changes: 1 addition & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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/[email protected]

release:
Expand All @@ -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
15 changes: 15 additions & 0 deletions .github/workflows/update_semver.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 0 additions & 15 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -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:
[
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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 |
Expand All @@ -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
Expand Down
22 changes: 3 additions & 19 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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 != '') }}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0dc22c8

Please sign in to comment.