Skip to content

Commit 8abcce3

Browse files
authored
Merge pull request #6 from treezio/remove-bundle-config-action
Remove config action
2 parents 6c9328d + 7cf7aa9 commit 8abcce3

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/workflows/bump_ruby.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bump Ruby Bundled Version
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
paths:
8+
- '.ruby-version'
9+
10+
permissions:
11+
contents: "write"
12+
pull-requests: "write"
13+
14+
jobs:
15+
bump_ruby:
16+
runs-on: "ubuntu-latest"
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- uses: ruby/setup-ruby@v1
21+
with:
22+
bundler-cache: false
23+
- name: Update Gemfile.lock
24+
run: |
25+
bundle config --local deployment false
26+
bundle update --ruby
27+
- name: Commit changes
28+
run: |
29+
git config --global user.name "treezio"
30+
git config --global user.email "[email protected]"
31+
git add Gemfile.lock
32+
git commit -m "Update Gemfile.lock with new Ruby version" || echo "No changes to commit"
33+
- name: Push changes
34+
uses: ad-m/[email protected]
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
branch: ${{ github.head_ref }}
38+
force: true

.github/workflows/updatecli.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Updatecli
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
# Run At 01:00 on first day-of-month.
8+
- cron: '0 1 1 * *'
9+
10+
permissions:
11+
contents: "write"
12+
pull-requests: "write"
13+
14+
jobs:
15+
updatecli:
16+
runs-on: "ubuntu-latest"
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Install Updatecli in the runner
22+
uses: updatecli/updatecli-action@v2
23+
24+
- name: Run Updatecli in apply mode
25+
run: |
26+
shopt -s globstar
27+
updatecli apply --config updatecli/updatecli.d --values updatecli/values.yaml
28+
env:
29+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)