rubyci-screenshot #1778
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: rubyci-screenshot | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '30 14 * * *' # Daily at 14:30 UTC | |
jobs: | |
latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
- name: Setup the environment | |
run: | | |
sudo snap install chromium | |
bundle install | |
- name: Run the script | |
run: bundle exec ruby rubyci-screenshot.rb | |
env: | |
RUBYCI_SCREENSHOT_SLACK_API_TOKEN: ${{ secrets.RUBYCI_SCREENSHOT_SLACK_API_TOKEN }} | |
RUBYCI_SCREENSHOT_SLACK_CHANNEL_ID: ${{ secrets.RUBYCI_SCREENSHOT_SLACK_CHANNEL_ID }} | |
# - uses: actions/upload-artifact@master | |
# with: | |
# name: rubyci-screenshot | |
# path: rubyci.png |