Create createTorrent.yml

This commit is contained in:
Boof 2023-04-28 11:13:45 +02:00 committed by GitHub
parent 560fc9b7be
commit 10144e34ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

35
.github/workflows/createTorrent.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Create torrent
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
sitemap_job:
runs-on: ubuntu-latest
name: Create torrent
steps:
- name: Checkout the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install npm and the required packages
run: |
sudo apt update
sudo apt install nodejs
sudo apt install npm
npm install create-torrent
- name: Create the torrent
run: |
wget https://hexahigh.github.io/cdn/other/torrent-create.js
node torrent-create.js
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Github Action: Automatic sitemap update."
branch: ${{ github.ref }}