-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding workflow for json-to-lua (#2)
Adding workflow for json-to-lua
- Loading branch information
1 parent
a7a4c57
commit 0018cbd
Showing
159 changed files
with
5,300 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Create Release | ||
|
||
# Create a release tag automatically when a pull request from a `release/**` branch is | ||
# merged into the `main` branch. | ||
# This will create the tag which will kick off a new build with a tagged release. | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "release/**" | ||
types: | ||
- closed | ||
|
||
jobs: | ||
tag: | ||
name: Tag Release | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true && github.base_ref == 'main' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
set-safe-directory: "*" | ||
- name: Get Version | ||
id: version | ||
run: | | ||
V="${GITHUB_REF#refs/heads/release/v}" | ||
echo "version=${V}" >> $GITHUB_OUTPUT | ||
- name: Create Tag | ||
run: | | ||
V="v${{steps.version.outputs.version}}" | ||
git tag "$V" -m "Release $V" | ||
git push "$V" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Release Candidate | ||
|
||
# Create a release candidate tag automatically when a pull request from a `release/**` | ||
# branch is merged into the `main` branch. | ||
# This will create the tag which will kick off a new build with a tagged release | ||
# candidate. | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "release/**" | ||
|
||
jobs: | ||
tag: | ||
name: Tag Release Candidate | ||
runs-on: ubuntu-latest | ||
if: github.base_ref == 'main' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
set-safe-directory: "*" | ||
- name: Get Version | ||
id: version | ||
run: | | ||
V="${GITHUB_REF#refs/heads/release/v}" | ||
echo "version=${V}" >> $GITHUB_OUTPUT | ||
- name: Create Tag | ||
run: | | ||
V="v${{steps.version.outputs.version}}" | ||
LATEST="${V}-0" # Default to RC 0 | ||
NUM_RCS=$(git tag --list "${V}-*" | wc -l) | ||
if [[ $NUM_RCS -gt 0 ]]; then | ||
LATEST="${V}-$((NUM_RCS))" | ||
fi | ||
git tag "$LATEST" -m "Release Candidate $LATEST" | ||
git push "$LATEST" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.