Skip to content

Commit

Permalink
fix release workflow
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit a9f8641
Author: Slava Leleka <[email protected]>
Date:   Thu Sep 7 19:28:45 2023 +0300

    add tag checking condition to release workflow

commit c4320e5
Author: Slava Leleka <[email protected]>
Date:   Thu Sep 7 19:15:45 2023 +0300

    fix release concurrency

commit fdf483f
Author: Slava Leleka <[email protected]>
Date:   Thu Sep 7 19:14:31 2023 +0300

    add concurrency to release workflow

commit 8fa1edb
Author: Slava Leleka <[email protected]>
Date:   Thu Sep 7 19:08:54 2023 +0300

    fix release notify condition

commit 49cae05
Author: Slava Leleka <[email protected]>
Date:   Thu Sep 7 18:57:44 2023 +0300

    fix notify condition

commit a724bfb
Author: Slava Leleka <[email protected]>
Date:   Thu Sep 7 18:56:00 2023 +0300

    fix workflow_dispatch inputs
  • Loading branch information
slavaleleka committed Sep 7, 2023
1 parent 54d40be commit b47bfdf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
${{ always() &&
(
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
)
}}
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,23 @@ on:
- v*
# Make possible to run manually
workflow_dispatch:
# warn before running manually
warning:
description: 'Should be run only for tags like `v*`'
required: true
type: boolean
inputs:
# warn before running manually
warning:
description: 'Should be run only for tags like `v*`'
required: false
type: boolean

# Make sure that only one release workflow runs at a time.
concurrency:
group: release

jobs:
release:
name: Create NPM and GitHub release
runs-on: ubuntu-latest
# Only run this job for v* tags
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Check out the repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -84,7 +90,7 @@ jobs:
${{ always() &&
(
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name == github.repository
github.event_name == 'workflow_dispatch'
)
}}
runs-on: ubuntu-latest
Expand Down

0 comments on commit b47bfdf

Please sign in to comment.