-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
47 lines (43 loc) · 2.18 KB
/
Copy pathaction.yaml
File metadata and controls
47 lines (43 loc) · 2.18 KB
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
name: Regsitry Manager
description: A Rust-based registry manager that keeps the extension registry up to date by syncing bundled extensions via GitHub Actions.
author: Inkdex <inkdex@proton.me>
inputs:
github-token:
description: The GitHub token used for updating the inkdex/extensions repository, should have content write rights.
required: true
repository:
description: The repository which the action will get the extensions from.
required: true
branch:
description: The branch in the repository which the action will get the extensions from.
required: true
## Not exposing the following inputs at this moment:
#commit-message:
# description: 'The commit message that will be used for the commit to the inkdex/extensions repository, default "Registry management (repository, branch)".'
# default: Registry management (repository, branch)
#commit-author-name:
# description: 'The author name which will be used to make the commit to the inkdex/extensions repository, default: "github-actions[bot]".'
# default: github-actions[bot]
#commit-author-email:
# description: 'The author email which will be used to make the commit to the inkdex/extensions repository, default: "github-actions[bot]@users.noreply.github.com".'
# default: github-actions[bot]@users.noreply.github.com
#log-level:
# description: 'The level at which the tool will log, default: "INFO"'
# default: INFO
runs:
using: composite
steps:
- name: Set Shell Environment Variables
shell: bash
run: |
echo "GITHUB_TOKEN=${{ inputs.github-token }}" >> $GITHUB_ENV
echo "REPOSITORY=${{ inputs.repository }}" >> $GITHUB_ENV
echo "BRANCH=${{ inputs.branch }}" >> $GITHUB_ENV
- name: Download Tool
shell: bash
run: |
gh release download --repo 'inkdex/registry-manager' --pattern 'registry-manager-x86_64-unknown-linux-gnu.tar.gz'
tar -xzf 'registry-manager-x86_64-unknown-linux-gnu.tar.gz'
- name: Run Tool
shell: bash
run: ./registry-manager-x86_64-unknown-linux-gnu/registry-manager