-
Notifications
You must be signed in to change notification settings - Fork 29
37 lines (33 loc) · 1.21 KB
/
maintenance-bundle-update.yml
File metadata and controls
37 lines (33 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Maintenance - Bundle Update
on:
workflow_dispatch
permissions:
contents: write
pull-requests: write
jobs:
bundle-update:
runs-on: windows-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Set up Ruby
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1.299.0
with:
ruby-version: 3.4 # Use same Ruby version with fluent-package bundled
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Bundle Update
run: |
cd fluent-package
gem install bundler:2.3.27
bundle _2.3.27_ update -j 4
- name: Create Pull Request
run: |
$today=Get-Date -Format "yyyy-MM-dd-HHMM"
$branch="maintenance/bundle-update/${today}"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git switch --create $branch
git add fluent-package/Gemfile.lock
git commit --message "Update Gemfile.lock" --signoff
git push origin $branch
gh pr create --title "Update Gemfile.lock" --body "Update Gemfile.lock by maintenance workflow"