-
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.
fix: rename label handling outputs (#158)
* fix: rename step outputs * ci: bump actionlint * chore: fix pre-commit
- Loading branch information
1 parent
c337191
commit fd75521
Showing
3 changed files
with
45 additions
and
17 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 |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
python-version: "3.7" | ||
- name: Install actionlint | ||
run: | | ||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.22/scripts/download-actionlint.bash) | ||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.24/scripts/download-actionlint.bash) | ||
- uses: pre-commit/[email protected] | ||
|
||
publish: | ||
|
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,28 @@ | ||
#!/bin/bash | ||
|
||
# GitHub repository details | ||
OWNER="your_username" | ||
REPO="your_repository" | ||
|
||
# GitHub API endpoint for labels | ||
API_URL="https://api.github.com/repos/$OWNER/$REPO/labels" | ||
|
||
# GitHub personal access token (replace with your own) | ||
TOKEN="your_personal_access_token" | ||
|
||
|
||
# Array of label details | ||
LABELS=( | ||
'{"name": "execute_knowledge", "description": "Trigger execution of knowledge objects tests", "color": "4040F2"}' | ||
'{"name": "execute_ui", "description": "Trigger execution of ui tests", "color": "F79D34"}' | ||
'{"name": "execute_modinput_functional", "description": "Trigger execution of modinput functional tests", "color": "7ED321"}' | ||
'{"name": "execute_scripted_inputs", "description": "Trigger execution of scripted inputs tests", "color": "9013FE"}' | ||
'{"name": "execute_escu", "description": "Trigger execution of escu tests", "color": "F5A623"}' | ||
'{"name": "execute_requirement_test", "description": "Trigger execution of requirement tests", "color": "F8E71C"}' | ||
'{"name": "execute_all_tests", "description": "Trigger execution of all tests types", "color": "006B76"}' | ||
) | ||
|
||
# Loop through the labels and add them to the repository | ||
for label in "${LABELS[@]}"; do | ||
gh label create "$(echo "$label" | jq -r '.| .name')" --color "$(echo "$label" | jq -r '.| .color')" --description "$(echo "$label" | jq '.| .description')" --force | ||
done |