Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 committed Mar 26, 2023
0 parents commit 7375e6a
Show file tree
Hide file tree
Showing 21 changed files with 1,294 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1.0.0
5 changes: 5 additions & 0 deletions .github/delete-merged-branch-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exclude:
- main
- stable
- develop
delete_closed_pr: true
19 changes: 19 additions & 0 deletions .github/workflows/json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: JSON check
on:
push:
pull_request:
workflow_dispatch:
jobs:
test-json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: json-syntax-check
uses: limitusus/json-syntax-check@v2
with:
pattern: "\\.json$*"
- uses: actions/checkout@v3
- name: mcmeta-syntax-check
uses: limitusus/json-syntax-check@v2
with:
pattern: "\\pack.mcmeta$*"
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release
on:
workflow_dispatch:
push:
paths:
- .github/.version
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Read .version file
id: version
run: echo "version=$(cat .github/.version)" >> $GITHUB_OUTPUT
- name: zip datapack
run: zip -r pumpkin.zip pack.mcmeta pack.png assets
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: pumpkin.zip
- uses: marvinpinto/action-automatic-releases@latest
if: github.event_name != 'pull_request'
with:
prerelease: false
repo_token: ${{ github.token }}
title: ${{ steps.version.outputs.version }}
automatic_release_tag: ${{ steps.version.outputs.version }}
files: pumpkin.zip
14 changes: 14 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: reviewdog
on: [pull_request]
jobs:
misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/checkout@v3
- name: misspell
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.github_token }}
locale: "US"
20 changes: 20 additions & 0 deletions .github/workflows/yq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: yq
on:
workflow_dispatch:
jobs:
yq:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.YQ }}
- name: update workflows
run: for workflow in .github/workflows/*.yml; do yq "$workflow" | tee "$workflow".tmp && mv "$workflow".tmp "$workflow"; done
- name: push changes
run: |
git config user.name "GitHub"
git config user.email "[email protected]"
git add -A
git diff-index --quiet HEAD || git commit -sm "yq"
git push
Loading

0 comments on commit 7375e6a

Please sign in to comment.