File tree Expand file tree Collapse file tree 8 files changed +49
-134
lines changed Expand file tree Collapse file tree 8 files changed +49
-134
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,3 @@ updates:
1515 time : " 09:00"
1616 timezone : " Etc/UTC"
1717 open-pull-requests-limit : 10
18- allow :
19- - dependency-name : " *"
20- dependency-type : " production"
Original file line number Diff line number Diff line change @@ -9,26 +9,5 @@ permissions:
99
1010jobs :
1111 dependabot :
12- name : Dependabot
13- runs-on : ubuntu-latest
14-
15- if : ${{ github.actor == 'dependabot[bot]' }}
16- steps :
17- - name : Fetch Dependabot metadata
18- id : dependabot-metadata
19- uses : dependabot/fetch-metadata@v1
20- with :
21- github-token : " ${{ secrets.GITHUB_TOKEN }}"
22-
23- - name : Approve Dependabot PR
24- if : ${{steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'}}
25- run : gh pr review --approve "$PR_URL"
26- env :
27- PR_URL : ${{github.event.pull_request.html_url}}
28- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29-
30- - name : Merge Dependabot PR
31- run : gh pr merge --auto --squash "$PR_URL"
32- env :
33- PR_URL : ${{ github.event.pull_request.html_url }}
34- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
12+ uses : yettoapp/actions/.github/workflows/automerge_dependabot.yml@main
13+ secrets : inherit
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+
6+ permissions :
7+ contents : read
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - name : Set up Ruby
17+ uses : yettoapp/actions/setup-languages@main
18+ with :
19+ ruby : true
20+
21+ - name : Run tests
22+ run : bundle exec rake test
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ jobs:
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v3
16- - uses : ruby/setup-ruby@v1
16+
17+ - name : Set up Ruby
18+ uses : yettoapp/actions/setup-languages@main
1719 with :
18- ruby-version : 3.1.0
19- rubygems : latest
20- bundler-cache : true
21- - run : bundle install
20+ ruby : true
21+
2222 - name : Rubocop
2323 run : bundle exec rake rubocop
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+ paths :
9+ - " lib/html_pipeline/version.rb"
10+
11+ jobs :
12+ ruby :
13+ uses : yettoapp/actions/.github/workflows/ruby_gem_release.yml@main
14+ secrets :
15+ rubygems_api_key : ${{ secrets.RUBYGEMS_API_BOT_KEY }}
16+ gh_token : ${{ secrets.GITHUB_TOKEN }}
17+ with :
18+ gem_name : html-pipeline
19+ version_filepath : lib/html_pipeline/version.rb
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ 3.2.1
You can’t perform that action at this time.
0 commit comments