-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (29 loc) · 1.09 KB
/
rubyci-alerts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.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 }}