Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit d235822

Browse files
committed
Add GitHub Actions workflows
1 parent dfd97d6 commit d235822

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
test:
11+
runs-on: 'ubuntu-latest'
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: mstksg/get-package@v1
15+
with:
16+
apt-get: shellcheck
17+
- name: Run ShellCheck
18+
run: |
19+
shellcheck -V
20+
shellcheck update.sh

.github/workflows/update.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Update release metadata
2+
on:
3+
push:
4+
branches:
5+
- master
6+
schedule:
7+
- cron: '0 */6 * * *'
8+
jobs:
9+
update:
10+
runs-on: 'ubuntu-latest'
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: mstksg/get-package@v1
14+
with:
15+
apt-get: jq perl curl
16+
- name: Run update script
17+
run: ./update.sh
18+
- name: Commit files
19+
run: |
20+
git config --local user.email "[email protected]"
21+
git config --local user.name "GitHub Action"
22+
git add metadata/ checksums/
23+
test -z $(git status -s) || git commit -m "Update release metadata"
24+
- name: Push changes
25+
uses: ad-m/github-push-action@master
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)