豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

gha-tbandroid-aaq

gha-tbandroid-aaq #710

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: gha-tbandroid-aaq
on:
workflow_dispatch:
schedule:
- cron: '15,55 * * * *'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
cache-version: 3
ruby-version: '3.2'
- name: Install dependencies
run: |-
bundle install
- name: Get Thunderbird for Android questions
run: |-
timestamp=$(date --utc)
echo "\"${timestamp}\" +%Y"
bundle exec ./get_answers_for_last_2_days_and_1_of_last_12.rb
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git add -A
timestamp=$(date -u)
git commit -m "Latest Thunderbird for Android questions: ${timestamp}" || exit 0
git push