mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
Create createTorrent.yml
This commit is contained in:
parent
560fc9b7be
commit
10144e34ea
35
.github/workflows/createTorrent.yml
vendored
Normal file
35
.github/workflows/createTorrent.yml
vendored
Normal 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 }}
|
||||
Loading…
x
Reference in New Issue
Block a user