-
Notifications
You must be signed in to change notification settings - Fork 2
113 lines (94 loc) · 4.1 KB
/
catalog.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: catalog
on:
push:
branches: [ main, dar-manager ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
create-catalog:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# From: https://lannonbr.com/blog/2019-12-09-git-commit-in-actions
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Install required packages
run: sudo apt install -y dar dar-static par2 git
- name: create/populate/test/restore multiple catalogs
run: |
chmod +x $GITHUB_WORKSPACE/test/test-create-catalog.sh
$GITHUB_WORKSPACE/test/test-create-catalog.sh
create-single-catalog:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# From: https://lannonbr.com/blog/2019-12-09-git-commit-in-actions
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Install required packages
run: sudo apt install -y dar dar-static par2 git
- name: create single catalog
run: |
chmod +x $GITHUB_WORKSPACE/test/test-create-single-catalog.sh
$GITHUB_WORKSPACE/test/test-create-single-catalog.sh
populate-single-catalog:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# From: https://lannonbr.com/blog/2019-12-09-git-commit-in-actions
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Install required packages
run: sudo apt install -y dar dar-static par2 git
- name: populate single catalog
run: |
chmod +x $GITHUB_WORKSPACE/test/test-populate-single-catalog.sh
$GITHUB_WORKSPACE/test/test-populate-single-catalog.sh
add-archive-to-catalog:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# From: https://lannonbr.com/blog/2019-12-09-git-commit-in-actions
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Install required packages
run: sudo apt install -y dar dar-static par2 git
- name: populate single catalog
run: |
chmod +x $GITHUB_WORKSPACE/test/test-populate-catalog-single-archive.sh
$GITHUB_WORKSPACE/test/test-populate-catalog-single-archive.sh
remove-archive-from-catalog:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# From: https://lannonbr.com/blog/2019-12-09-git-commit-in-actions
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Install required packages
run: sudo apt install -y dar dar-static par2 git
- name: remove 1 entry from a catalog
run: |
chmod +x $GITHUB_WORKSPACE/test/test-remove-single-archive-from-catalog.sh
$GITHUB_WORKSPACE/test/test-remove-single-archive-from-catalog.sh