Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
widget.js:
Signed-off-by: David <david@davidcraft.de>
Workflows:
Signed-off-by: Zoey <zoey@z0ey.de>
  • Loading branch information
DavidCraftDev authored and Zoey2936 committed Jan 19, 2023
0 parents commit 5f786ed
Show file tree
Hide file tree
Showing 12 changed files with 1,270 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
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
16 changes: 16 additions & 0 deletions .github/workflows/json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
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$*"
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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: change version numbers
run: sed -i "s|0.0.0|${{ steps.version.outputs.version }}|g" widget.js

- uses: "marvinpinto/action-automatic-releases@latest"
with:
prerelease: false
repo_token: ${{ github.token }}
title: ${{ steps.version.outputs.version }}
automatic_release_tag: ${{ steps.version.outputs.version }}
files: |
widget.js
Loading

0 comments on commit 5f786ed

Please sign in to comment.