Add flag for prevent to update NEWS.md for release day.

This commit is contained in:
Hiroshi SHIBATA 2025-12-24 13:48:35 +09:00
parent 342d25785c
commit 7d2815d907
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,8 @@
name: bundled_gems
env:
UPDATE_NEWS_ENABLED: false
on:
push:
branches: ['master']
@ -67,6 +70,7 @@ jobs:
- name: Maintain updated gems list in NEWS
run: |
ruby tool/update-NEWS-gemlist.rb bundled
if: ${{ env.UPDATE_NEWS_ENABLED == 'true' }}
- name: Check diffs
id: diff

View File

@ -1,6 +1,9 @@
name: Update default gems list
on: [push, pull_request, merge_group]
env:
UPDATE_NEWS_ENABLED: false
concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}
@ -65,7 +68,7 @@ jobs:
- name: Maintain updated gems list in NEWS
run: |
ruby tool/update-NEWS-gemlist.rb default
if: ${{ steps.gems.outcome == 'success' }}
if: ${{ steps.gems.outcome == 'success' && env.UPDATE_NEWS_ENABLED == 'true' }}
- name: Check diffs
id: diff