No need to specify tags anymore #1269
This file contains 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: Check Dependencies | |
on: | |
push: | |
paths-ignore: | |
- 'doc/**' | |
- '**/man/*' | |
- '**.md' | |
- '**.rdoc' | |
- '**/.document' | |
- '.*.yml' | |
pull_request: | |
paths-ignore: | |
- 'doc/**' | |
- '**/man/*' | |
- '**.md' | |
- '**.rdoc' | |
- '**/.document' | |
- '.*.yml' | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }} | |
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }} | |
permissions: | |
contents: read | |
jobs: | |
update-deps: | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
fail-fast: true | |
runs-on: ${{ matrix.os }} | |
if: >- | |
${{!(false | |
|| contains(github.event.head_commit.message, '[DOC]') | |
|| contains(github.event.head_commit.message, 'Document') | |
|| contains(github.event.pull_request.title, '[DOC]') | |
|| contains(github.event.pull_request.title, 'Document') | |
|| contains(github.event.pull_request.labels.*.name, 'Document') | |
|| (github.event_name == 'push' && github.actor == 'dependabot[bot]') | |
)}} | |
steps: | |
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
- uses: ./.github/actions/setup/ubuntu | |
if: ${{ contains(matrix.os, 'ubuntu') }} | |
- uses: ./.github/actions/setup/macos | |
if: ${{ contains(matrix.os, 'macos') }} | |
- uses: ./.github/actions/setup/directories | |
- uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 | |
with: | |
ruby-version: '3.0' | |
bundler: none | |
- name: Run configure | |
run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g' | |
- run: make all golf | |
- run: ruby tool/update-deps --fix | |
- run: git diff --no-ext-diff --ignore-submodules --exit-code | |
- uses: ./.github/actions/slack | |
with: | |
label: ${{ matrix.os }} / Dependencies need to update | |
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot | |
if: ${{ failure() }} |