-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into nokeyword-rules
- Loading branch information
Showing
146 changed files
with
3,303 additions
and
3,669 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# (c) https://github.com/MontiCore/monticore | ||
name: "Trigger the MontiVerse (workflow-call)" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
project: | ||
description: 'The (internal) name for this project, as defined within the MontiVerse job' | ||
type: string | ||
required: true | ||
secrets: | ||
MONTIVERSE_TRIGGER_TOKEN: | ||
required: true | ||
MONTIVERSE_ACCESS_TOKEN: | ||
required: true | ||
|
||
|
||
jobs: | ||
# Run the MontiVerse pipeline (tests this change on a suite of projects) | ||
# The MontiVerse is a suite of projects, which are not build & tested with the given changes on a branch | ||
trigger-montiverse: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Extract Branch Name | ||
# We have to remove the refs/heads/ prefix from the branch which called this action | ||
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | ||
- name: Trigger MontiVerse | ||
# Then actually trigger the MontiVerseCI projects pipeline | ||
uses: digital-blueprint/gitlab-pipeline-trigger-action@c81ead300bf664f76245d816268c4a1b4bed2604 # @v1.2.0 | ||
with: | ||
host: 'git.rwth-aachen.de' | ||
trigger_token: ${{ secrets.MONTIVERSE_TRIGGER_TOKEN }} | ||
access_token: ${{ secrets.MONTIVERSE_ACCESS_TOKEN }} # Access is required to show the status | ||
id: '91803' # MontiVerseCI project id | ||
ref: 'main' | ||
variables: '{"${{inputs.project}}_BRANCH":"${{env.BRANCH_NAME}}", "${{inputs.project}}_PROJECT":"${{ github.event.repository.full_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# (c) https://github.com/MontiCore/monticore | ||
name: "Trigger the downstream projects (workflow-call)" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
projects: | ||
# An exemplary with-usage can look like the following: | ||
# projects: "['MontiCore/xml', 'MontiCore/json', 'MontiCore/ucd', 'MontiCore/automaton']" | ||
description: 'The JSON-projects to trigger' | ||
type: string | ||
required: true | ||
secrets: | ||
DOWNSTREAM_PAT: | ||
required: true | ||
|
||
|
||
jobs: | ||
# Trigger all downstream, as given by the projects inputs | ||
trigger-github-downstream: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
project: ${{ fromJSON(inputs.projects) }} | ||
|
||
steps: | ||
- name: Trigger ${{ matrix.project }} | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ secrets.DOWNSTREAM_PAT }} | ||
repository: ${{ matrix.project }} | ||
event-type: trigger_after_upstream_deploy |
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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.