Skip to content

Commit e1c5c1d

Browse files
authored
update github action to supported workflows (#73)
Signed-off-by: 662962756 <bvered@il.ibm.com>
1 parent 87d52a9 commit e1c5c1d

3 files changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/codespell.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: codespell
22

3-
on:
4-
push:
5-
branches: [ '*' ]
6-
pull_request:
7-
branches: [ '*' ]
3+
on: workflow_dispatch
84

95
jobs:
106
codespell:

.github/workflows/golangci-lint.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: golangci-lint
22

3-
on:
4-
push:
5-
branches: [ '*' ]
6-
pull_request:
7-
branches: [ '*' ]
3+
on: workflow_dispatch
84

95
jobs:
106
golangci-lint:

.github/workflows/iso-ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ jobs:
5555

5656
- name: get tag without v
5757
id: tag
58+
shell: bash
5859
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
59-
uses: battila7/get-version-action@v2
60+
run: |
61+
BUILD_VERSION=${{ github.event.release.tag_name }}
62+
echo "BUILD_VERSION=${BUILD_VERSION:1}" >> $GITHUB_ENV
6063
6164
# Build and (optionally) push the driver image
6265
- name: build the driver image
@@ -68,4 +71,4 @@ jobs:
6871
# Only push if we are publishing a release
6972
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
7073
# Use a 'dev' tag, that won't be pushed, for non-release builds
71-
tags: quay.io/ibmodffs/ibm-storage-odf-block-driver:${{ steps.tag.outputs.version-without-v || 'dev' }}
74+
tags: quay.io/ibmodffs/ibm-storage-odf-block-driver:${{ env.BUILD_VERSION || 'dev' }}

0 commit comments

Comments
 (0)