Distro tar generator #134
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |