generated from archlinux/template
Update .gitea/workflows/workflow.yml
This commit is contained in:
parent
ea386848c6
commit
43fde90190
@ -5,38 +5,9 @@ on:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
update:
|
||||
name: Update from AUR
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.email "sebastiaan.de.schaetzen+archlinux@gmail.com"
|
||||
git config user.name "Sebastiaan de Schaetzen (automated)"
|
||||
|
||||
- name: Add AUR repository
|
||||
run: git remote add aur https://aur.archlinux.org/yay.git
|
||||
|
||||
- name: Fetch AUR
|
||||
run: git fetch aur
|
||||
|
||||
- name: Merge latest changes
|
||||
run: |
|
||||
git merge aur/master
|
||||
git status
|
||||
|
||||
- name: Push changes (if any)
|
||||
run: git push origin master
|
||||
|
||||
wake:
|
||||
name: Wake Runner
|
||||
runs-on: ubuntu-latest
|
||||
needs: update
|
||||
steps:
|
||||
- name: Wakeup Runner
|
||||
run: |
|
||||
@ -45,10 +16,8 @@ jobs:
|
||||
build:
|
||||
name: Build and Push
|
||||
runs-on: ubuntu-amd64
|
||||
needs: wake
|
||||
container:
|
||||
image: gitea.seeseepuff.be/archlinux/archlinux:latest
|
||||
if: gitea.event_name == 'push'
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
Loading…
x
Reference in New Issue
Block a user