Workflow test
This commit is contained in:
24
.github/workflows/changelog.yml
vendored
24
.github/workflows/changelog.yml
vendored
@@ -2,11 +2,6 @@ name: Generate Changelog
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
paths:
|
|
||||||
- 'src/**'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
paths:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
branches:
|
branches:
|
||||||
@@ -14,8 +9,6 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changelog:
|
changelog:
|
||||||
# Skip job if no changes in src/
|
|
||||||
if: contains(github.event.head_commit.modified, 'src/') || contains(github.event.head_commit.added, 'src/') || contains(github.event.head_commit.removed, 'src/')
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -28,13 +21,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Create Release
|
- name: Commit updated changelog
|
||||||
uses: softprops/action-gh-release@v1
|
run: |
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
git config --local user.email "action@github.com"
|
||||||
with:
|
git config --local user.name "GitHub Action"
|
||||||
body_path: CHANGELOG.md
|
git add CHANGELOG.md
|
||||||
files: |
|
git commit -m "Update changelog" || true
|
||||||
CHANGELOG.md
|
git push
|
||||||
release/basalt.lua
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
@@ -105,6 +105,10 @@ function VisualElement:mouse_release()
|
|||||||
self.set("clicked", false)
|
self.set("clicked", false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Handles all events
|
||||||
|
--- @param event string The event to handle
|
||||||
|
--- @vararg any The arguments for the event
|
||||||
|
--- @return boolean? handled Whether the event was handled
|
||||||
function VisualElement:handleEvent(event, ...)
|
function VisualElement:handleEvent(event, ...)
|
||||||
if(self[event])then
|
if(self[event])then
|
||||||
return self[event](self, ...)
|
return self[event](self, ...)
|
||||||
|
|||||||
Reference in New Issue
Block a user