Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rubyci-alerts

rubyci-alerts #264574

Workflow file for this run

name: rubyci-alerts
on:
schedule:
- cron: '0,10,20,30,40,50 * * * *' # every ten minutes
jobs:
latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
with:
ruby-version: 2.7
- name: Use master branch
run: git checkout master
- name: Run the script
run: ruby rubyci-alerts.rb
env:
RUBYCI_ALERTS_SLACK_WEBHOOK_URL: ${{ secrets.RUBYCI_ALERTS_SLACK_WEBHOOK_URL }}
RUBYCI_ALERTS_SIMPLER_ALERTS_URL: ${{ secrets.RUBYCI_ALERTS_SIMPLER_ALERTS_URL }}
- name: Update the timestamp file
run: |
git config --global user.name "git"
git config --global user.email "[email protected]"
git remote set-url origin https://mame:${GITHUB_TOKEN}@github.com/ruby/rubyci-alerts.git
if git commit -a -m 'Update timestamp'; then
git push origin HEAD
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}