add planktos workflow

This commit is contained in:
hexahigh 2023-04-28 19:23:27 +02:00
parent f790247239
commit 34fac17435

34
.github/workflows/planktos.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Create planktos torrent
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
sitemap_job:
runs-on: ubuntu-latest
name: Create planktos 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
sudo npm install -g planktos
- name: Create the torrent file
run: |
planktos ./
- name: Commit the changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Github Action: Updated planktos torrent file"
branch: ${{ github.ref }}