generated from archlinux/template
Update .gitea/workflows/workflow.yml
This commit is contained in:
parent
ea386848c6
commit
43fde90190
@ -5,38 +5,9 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
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:
|
wake:
|
||||||
name: Wake Runner
|
name: Wake Runner
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: update
|
|
||||||
steps:
|
steps:
|
||||||
- name: Wakeup Runner
|
- name: Wakeup Runner
|
||||||
run: |
|
run: |
|
||||||
@ -45,10 +16,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Build and Push
|
name: Build and Push
|
||||||
runs-on: ubuntu-amd64
|
runs-on: ubuntu-amd64
|
||||||
needs: wake
|
|
||||||
container:
|
container:
|
||||||
image: gitea.seeseepuff.be/archlinux/archlinux:latest
|
image: gitea.seeseepuff.be/archlinux/archlinux:latest
|
||||||
if: gitea.event_name == 'push'
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user