forked from LF-Decentralized-Trust-labs/paladin
-
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.
Merge pull request #9 from dwertent/hotfix-release
Hotfix release
- Loading branch information
Showing
15 changed files
with
218 additions
and
58 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,6 @@ | ||
paths: | ||
# This pattern matches any YAML file under the '.github/workflows/' directory. | ||
.github/workflows/**/*.yaml: | ||
ignore: | ||
# Ignore the specific error from shellcheck | ||
- 'shellcheck reported issue in this script: SC2086:.+' |
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 @@ | ||
name: "Modify Repository Name" | ||
description: "Outputs a modified repository name based on given inputs." | ||
inputs: | ||
repository: | ||
description: "The original repository name." | ||
required: true | ||
registry: | ||
description: "The registry name." | ||
required: true | ||
outputs: | ||
repository: | ||
description: "The modified repository name after applying rules." | ||
value: ${{ steps.modify_repository.outputs.repository }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: modify_repository | ||
id: modify_repository | ||
shell: bash | ||
run: | | ||
# Step 1: Convert repository name to lowercase | ||
repository_lower=$(echo "${{ inputs.repository }}" | tr '[:upper:]' '[:lower:]') | ||
# Initialize the modified repository with the lowercase name | ||
modified_repository="$repository_lower" | ||
# Step 2: If registry is docker.io and repository is lf-decentralized-trust-labs, | ||
# remove the '-' characters from the repository name | ||
if [ "${{ inputs.registry }}" = "docker.io" ] && [ "$repository_lower" = "lf-decentralized-trust-labs" ]; then | ||
modified_repository=$(echo "$repository_lower" | sed 's/-//g') | ||
fi | ||
# Set the output | ||
echo "repository=$modified_repository" >> $GITHUB_OUTPUT |
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,10 @@ | ||
name: "Validate Workflows Action" | ||
description: "A GitHub Action to validate workflows." | ||
|
||
runs: | ||
using: docker | ||
image: docker.io/rhysd/actionlint:latest | ||
|
||
branding: | ||
color: "blue" | ||
icon: "check-circle" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# run only when workflows are triggered by a push event | ||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/**' | ||
- '.github/actions/**' | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Validate workflows | ||
uses: ./.github/actions/workflows-validation |
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.