Skip to content

Redirect Rule Maker #389

Redirect Rule Maker

Redirect Rule Maker #389

Workflow file for this run

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