Skip to content

Commit

Permalink
- Added actions and config
Browse files Browse the repository at this point in the history
  • Loading branch information
Zly-u committed Feb 10, 2024
1 parent 82b2359 commit 66b0f68
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: check
on: [push, pull_request]
jobs:
reapack-index:
runs-on: ubuntu-latest
steps:
- name: Fetch repository
uses: actions/checkout@v2
- name: Install Pandoc
run: sudo apt-get install -yy pandoc
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Install reapack-index
run: gem install reapack-index
- name: Validate packages
run: reapack-index --check
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: deploy
on:
push:
branches: [master]
jobs:
reapack-index:
runs-on: ubuntu-latest
steps:
- name: Fetch repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure git
run: |-
git config user.name 'ReaTeam Bot'
git config user.email '[email protected]'
- name: Install Pandoc
run: sudo apt-get install -yy pandoc
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Install reapack-index
run: gem install reapack-index
- name: Update index.xml
run: reapack-index --commit
- name: Push changes
run: git push
4 changes: 4 additions & 0 deletions .reapack-index.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--about README.md
--commit-template "index: $changelog

[ci skip]"

0 comments on commit 66b0f68

Please sign in to comment.