This repository has been archived by the owner on Mar 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
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
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" |
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
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.