Skip to content

Commit

Permalink
Merge pull request #108 from mach3-software/feature_TagCI
Browse files Browse the repository at this point in the history
Bot Tagging Tutorial/Validations whenever Human Tags MaCh3
  • Loading branch information
KSkwarczynski authored Sep 9, 2024
2 parents 2809fb8 + 2762a16 commit a0a723d
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/CDImage.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Update MaCh3 container image registry with newest updates
name: Image CD

# The events that trigger the workflow
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/CIBuild.yml
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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/CIValidations.yml
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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/CodeQL.yml
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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Doxygen.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is a basic workflow to help you get started with Actions
# This is a basic workflow make doxygen documentation every time develop is updated

name: Doxygen

Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/TagTutorial.yml
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

0 comments on commit a0a723d

Please sign in to comment.