-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (55 loc) · 1.72 KB
/
test.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
name: 'test'
on:
workflow_dispatch:
inputs:
repository:
description: 'where to look for a release'
required: true
default: manjaro-sway/manjaro-sway-settings-git
release:
description: 'release to download'
required: true
default: r1841.a635ef1c-2
branch:
description: 'manjaro lifecycle branch'
default: 'testing'
type: choice
options:
- stable
- testing
- unstable
push:
branches:
- main
## fallbacks only needed for push-events
env:
repository: ${{ inputs.repository || 'manjaro-sway/manjaro-sway-settings-git' }}
release: ${{ inputs.release || 'r1841.a635ef1c-2' }}
branch: ${{ inputs.branch || 'testing' }}
concurrency:
## fallbacks only needed for push-events
group: ${{ inputs.repository || 'manjaro-sway/manjaro-sway-settings-git' }}-${{ inputs.branch || 'testing' }}
cancel-in-progress: true
jobs:
repo-add:
## fallbacks only needed for push-events
name: add ${{ inputs.repository || 'manjaro-sway/manjaro-sway-settings-git' }}@${{ inputs.release || 'r1841.a635ef1c-2' }} to ${{ inputs.branch || 'testing' }}
runs-on: ubuntu-latest
container: docker://archlinux:base
permissions:
contents: write
steps:
- name: install tools
shell: bash
run: |
pacman -Sy --noconfirm --needed git git-lfs github-cli
# needed only to fetch the action.yml
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
fetch-depth: 1
- id: repo-add
uses: ./
with:
repository: ${{ env.repository }}
release: ${{ env.release }}
branch: ${{ env.branch }}