Skip to content

daily-bundler

daily-bundler #2145

Workflow file for this run

---
name: daily-bundler
on:
schedule:
- cron: 0 0 * * *
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
daily_bundler:
name: Bundler (ruby-head)
runs-on: ubuntu-24.04
if: github.repository == 'ruby/rubygems'
env:
RGV: ..
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
with:
ruby-version: ruby-head
bundler: none
- name: Show Ruby version
run: ruby --version
- name: Prepare dependencies
run: |
bin/rake dev:deps
- name: Run Test
run: |
bin/rake spec:all
- name: Get previous status
if: always()
run: echo "OLD_STATUS=$(curl -sS 'https://api.github.com/repos/ruby/rubygems/actions/workflows/daily-bundler.yml/runs?event=schedule&branch=master' | jq '.workflow_runs | .[1].conclusion')" >> $GITHUB_ENV
- uses: 8398a7/action-slack@77eaa4f1c608a7d68b38af4e3f739dcd8cba273e # v3.19.0
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: failure() && env.OLD_STATUS == '"success"'
timeout-minutes: 60