-
-
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.
- Loading branch information
1 parent
5d69720
commit ebdd4a7
Showing
32 changed files
with
675 additions
and
452 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 was deleted.
Oops, something went wrong.
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,53 @@ | ||
name: Tag and Push | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: "The ref to check out (branch, tag, or commit SHA). Leave blank for default branch." | ||
required: false | ||
default: '' | ||
tag_name: | ||
description: "The name of the tag to create." | ||
required: true | ||
|
||
permissions: | ||
contents: write # Grant write permissions to push tags | ||
actions: write # Grant write permissions to trigger workflows | ||
|
||
jobs: | ||
tag_and_push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Ensure full history is fetched for tagging | ||
|
||
- name: Checkout specific ref (if provided) | ||
run: | | ||
if [ "${{ github.event.inputs.ref }}" != "" ]; then | ||
git fetch origin "${{ github.event.inputs.ref }}" | ||
git checkout "${{ github.event.inputs.ref }}" | ||
fi | ||
- name: Create or replace the tag | ||
run: | | ||
git tag -f "${{ github.event.inputs.tag_name }}" | ||
- name: Push the tag to origin | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git push origin "${{ github.event.inputs.tag_name }}" --force | ||
- name: Trigger build-ndk.yml workflow | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
curl -X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer $GITHUB_TOKEN" \ | ||
https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-ndk.yml/dispatches \ | ||
-d '{"ref": "${{ github.event.inputs.tag_name }}"}' |
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,3 @@ | ||
[submodule "common-stuff"] | ||
path = common-stuff | ||
url = https://github.com/DanTheMan827-BeatSaber/common-stuff.git |
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,5 @@ | ||
{ | ||
"recommendations": [ | ||
"llvm-vs-code-extensions.vscode-clangd" | ||
] | ||
} |
Oops, something went wrong.