Merge pull request #4061 from Earlopain/reenable-sorbet-ci #293
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync ruby | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - ruby-4.0 | |
| jobs: | |
| sync: | |
| name: Sync ruby | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner == 'ruby' }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set ruby/ruby target branch | |
| id: target | |
| run: | | |
| case "$GITHUB_REF_NAME" in | |
| main) echo "ref=master" >> "$GITHUB_OUTPUT" ;; | |
| ruby-4.0) echo "ref=ruby_4_0" >> "$GITHUB_OUTPUT" ;; | |
| esac | |
| - name: Create GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| app-id: 2060836 | |
| private-key: ${{ secrets.RUBY_SYNC_DEFAULT_GEMS_PRIVATE_KEY }} | |
| owner: ruby | |
| repositories: ruby | |
| - name: Sync to ruby/ruby | |
| uses: convictional/trigger-workflow-and-wait@v1.6.5 | |
| with: | |
| owner: ruby | |
| repo: ruby | |
| workflow_file_name: sync_default_gems.yml | |
| github_token: ${{ steps.app-token.outputs.token }} | |
| ref: ${{ steps.target.outputs.ref }} | |
| client_payload: | | |
| {"gem":"${{ github.event.repository.name }}","before":"${{ github.event.before }}","after":"${{ github.event.after }}"} | |
| propagate_failure: true | |
| wait_interval: 10 |