Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Commit

Permalink
Do base update releases
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Apr 22, 2021
1 parent 7da08f3 commit 71330cd
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/auto-release-base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Release on base update"

on:
push:
paths:
- 'release-versions/*'
branches:
- 'main'

jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"

steps:
- name: "Build & test"
run: |
echo "done!"
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.REPO_SCOPED_TOKEN }}"
automatic_release_tag: "update-base"
prerelease: true
title: "Base Image Update"
25 changes: 25 additions & 0 deletions .github/workflows/check-baseimage-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Get latest release version
on:
schedule:
- cron: '0 0 * * 0'
jobs:
get-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
- name: Fetch release version
run: |
curl -sL https://api.github.com/repos/linuxserver/docker-baseimage-alpine/releases/latest | \
jq -r ".tag_name" > release-versions/lsiobase-alpine-latest.txt
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
- name: Commit latest release version
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name 'TheSpad'
git config --global user.email 'git@spad.co.uk'
git commit -am "New lsiobase-alpine release version"
git push
Empty file.

0 comments on commit 71330cd

Please sign in to comment.