-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
85 lines (85 loc) · 2.59 KB
/
action.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: AUR Update
author: TheWisker
description: Updates AUR packages on release
branding:
icon: package
color: blue
inputs:
aur_key:
description: "AUR ssh private key"
required: true
ref:
description: "Checkout reference"
required: false
default: 'master'
username:
description: "Git username to use"
required: false
default: ${{ github.actor || 'github-actions-bot' }}
email:
description: "Git email to use"
required: false
default: [email protected]
repo:
description: "Repository"
required: false
default: ${{ github.repository }}
repo_name:
description: "Repository name"
required: false
default: ${{ github.event.repository.name }}
aur_folder:
description: "AUR files folder"
required: false
default: "./aur"
tag_name:
description: "Release tag name"
required: false
default: ${{ github.event.release.tag_name || 'no-tag' }}
runs:
using: "composite"
steps:
- name: Setup Runtime
if: ${{ github.event_name == 'release' }}
env:
aur_key: ${{ inputs.aur_key }}
run: /__w/_actions/TheWisker/aur-update/master/scripts/setup.sh
shell: bash
- name: Configure Git Credentials
if: ${{ github.event_name == 'release' }}
env:
username: ${{ inputs.username }}
email: ${{ inputs.email }}
repo_name: ${{ inputs.repo_name }}
run: /__w/_actions/TheWisker/aur-update/master/scripts/git_config.sh
shell: bash
- name: Checkout
if: ${{ github.event_name == 'release' }}
uses: actions/checkout@v3
with:
repository: ${{ inputs.repo }}
ref: ${{ inputs.ref }}
- name: Pull from AUR
if: ${{ github.event_name == 'release' }}
env:
aur_folder: ${{ inputs.aur_folder }}
run: /__w/_actions/TheWisker/aur-update/master/scripts/aur_pull.sh
shell: bash
- name: Update PKGBUILDs and .SRCINFOs
if: ${{ github.event_name == 'release' }}
env:
aur_folder: ${{ inputs.aur_folder }}
tag_name: ${{ inputs.tag_name }}
run: /__w/_actions/TheWisker/aur-update/master/scripts/aur_update.sh
shell: bash
- name: Push to AUR
if: ${{ github.event_name == 'release' }}
env:
aur_folder: ${{ inputs.aur_folder }}
tag_name: ${{ inputs.tag_name }}
run: /__w/_actions/TheWisker/aur-update/master/scripts/aur_push.sh
shell: bash
- name: Push to ${{ inputs.repo_name }} repository
if: ${{ github.event_name == 'release' }}
run: /__w/_actions/TheWisker/aur-update/master/scripts/repo_push.sh
shell: bash