このリポジトリは2024-05-31にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
2023-01-18 02:29:43 +09:00
|
|
|
name: instances-updater
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2023-03-16 05:06:20 +09:00
|
|
|
- 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
|
2023-05-16 20:45:29 +09:00
|
|
|
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
|