Redirect Rule Maker #440
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: Redirect Rule Maker | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v4 | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: install python dependencies | |
run: | | |
pip install -r ${{ github.workspace }}/requirements.txt | |
- name: Generate Config | |
run : | | |
python -u ${{ github.workspace }}/main.py | |
- name: Commit Output | |
uses: cpina/github-action-push-to-another-repository@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.TOKEN }} | |
with: | |
source-directory: ./output/ | |
destination-github-username: 'dalao-org' | |
destination-repository-name: 'oneinstack-redirect-mirror' | |
user-email: [email protected] | |
target-branch: main |