.github/workflows/ruby-tests.yml in i18n-js-4.0.0.alpha2 vs .github/workflows/ruby-tests.yml in i18n-js-4.0.0.alpha3
- old
+ new
@@ -1,28 +1,33 @@
---
name: ruby-tests
on:
- pull_request:
+ pull_request_target:
push:
+ branches:
+ - v4
workflow_dispatch:
inputs: {}
jobs:
build:
name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }}
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
- ruby: ["2.7", "3.0"]
+ ruby: ["2.7", "3.0", "3.1"]
gemfile:
- Gemfile
+ if: |
+ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' ||
+ github.actor != 'dependabot[bot]'
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- - uses: actions/cache@v2
+ - uses: actions/cache@v3
id: bundler-cache
with:
path: vendor/bundle
key: >
${{ runner.os }}-${{ matrix.ruby }}-gems-${{