このリポジトリは2024-05-31にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
libreredirect-instances/.github/workflows/main.yml

41 行
957 B
YAML
Raw パーマリンク 通常表示 履歴

2023-01-18 02:29:43 +09:00
name: instances-updater
on:
schedule:
- cron: '10 22 */1 * *'
2023-01-18 02:29:43 +09:00
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: get repo content
2023-01-18 03:27:07 +09:00
uses: actions/checkout@v3.3.0
2023-01-18 02:29:43 +09:00
- name: setup python
2023-01-18 03:27:07 +09:00
uses: actions/setup-python@v4.5.0
2023-01-18 02:29:43 +09:00
with:
2023-01-18 03:27:07 +09:00
python-version: '3.8'
2023-01-18 02:29:43 +09:00
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install requests colorama pyyaml
2023-01-18 02:29:43 +09:00
- name: run script
run: python instances.py
- name: commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -m "Update instances" -a || :
- name: push changes
2023-01-18 03:29:32 +09:00
uses: ad-m/github-push-action@v0.6.0
2023-01-18 02:29:43 +09:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2023-01-20 00:46:40 +09:00
branch: main