-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from mach3-software/feature_TagCI
Bot Tagging Tutorial/Validations whenever Human Tags MaCh3
- Loading branch information
Showing
6 changed files
with
42 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Check if MaCh3 compiles correctly | ||
|
||
name: Build CI | ||
|
||
# The events that trigger the workflow | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Performs unit and integration testing | ||
|
||
name: Validations CI | ||
|
||
# The events that trigger the workflow | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# This scans MaCh3 and tries to find vulnerabilities | ||
|
||
name: "CodeQL C++ Analysis" | ||
|
||
on: | ||
|
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 @@ | ||
# Whenever we make a new tag o MaCh3 let's make identical tag of MaCh3 Tutorial | ||
name: Tag MaCh3 Tutorial | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' # This workflow will trigger on any tag push | ||
|
||
jobs: | ||
create-tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Git | ||
run: | | ||
git config --global user.name "MaCh3 Bot" | ||
git config --global user.email "[email protected]" | ||
- name: Clone MaCh3Validations | ||
run: | | ||
git clone https://${{ secrets.MACH3_VALIDATIONS_PAT }}@github.com/mach3-software/MaCh3Validations.git | ||
- name: Create and push the new tag | ||
run: | | ||
cd MaCh3Validations/ | ||
# Extract the tag name from GITHUB_REF | ||
TAG_NAME=$(echo "${GITHUB_REF#refs/tags/}") | ||
# Create the new tag | ||
git tag $TAG_NAME | ||
# Push the tag to the MaCh3Validations repository | ||
git push https://${{ secrets.MACH3_VALIDATIONS_PAT }}@github.com/mach3-software/MaCh3Validations.git $TAG_NAME |