Skip to content

Distro tar generator #157

Distro tar generator

Distro tar generator #157

Workflow file for this run

name: Distro tar generator
on:
push:
schedule:
- cron: '0 0 * * 3'
jobs:
generate-distros:
runs-on: ubuntu-latest
container:
image: manjarolinux/base:latest
steps:
- name: Setup prerequisites
run: |
pacman -Syu --needed --noconfirm hub docker git github-cli
- uses: actions/checkout@v4
- name: Set date
id: get-date
run: |
ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
echo "date=$(/bin/date -u '+%d%m%Y%I%M')" >> $GITHUB_ENV
- name: Generate tars
run: |
docker ps --filter status=exited -q | xargs docker rm || echo "Ignoring docker pruning"
git config --global --add safe.directory /__w/wsl-distro-tars/wsl-distro-tars
bash wsl-tar-gen.sh
- name: Create Release
run: |
gh release create ${{ env.date }} tars/*.tar --generate-notes -t "WDT Release ${{ env.date }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}