-
Notifications
You must be signed in to change notification settings - Fork 10
33 lines (30 loc) · 969 Bytes
/
distro.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 }}