mirror of
https://github.com/multipleof4/gitea-github-cron.git
synced 2026-10-08 21:35:21 +00:00
32 lines
864 B
YAML
32 lines
864 B
YAML
name: Rename deleted GitHub mirrors
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 8 * * *' # 3 AM CDT
|
|
|
|
jobs:
|
|
rename:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- name: Rename mirrors missing on GitHub
|
|
id: sync
|
|
run: node rename-gone-mirrors.js
|
|
env:
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
GITEA_URL: ${{ secrets.GITEA_URL }}
|
|
|
|
- name: Notify via ntfy
|
|
if: ${{ always() }}
|
|
run: node notify.js
|
|
env:
|
|
NTFY_TOPIC_URL: ${{ secrets.NTFY_TOPIC_URL }}
|
|
WORKFLOW_KIND: rename
|
|
STEP_OUTCOME: ${{ steps.sync.outcome }}
|
|
RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|