From f65a5e341d3624fe874224c6fb133371cd0e7a2c Mon Sep 17 00:00:00 2001 From: Leo Ribeiro Date: Fri, 31 Jan 2025 18:06:35 -0500 Subject: [PATCH] Add workflow-kotlin (#56) --- .github/workflows/projects-dashboard.yml | 5 +- .../content/project/square_workflow-kotlin.md | 60 +++++++++++++++++++ 2 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 projects-dashboard/src/content/project/square_workflow-kotlin.md diff --git a/.github/workflows/projects-dashboard.yml b/.github/workflows/projects-dashboard.yml index f884716..2c39e98 100644 --- a/.github/workflows/projects-dashboard.yml +++ b/.github/workflows/projects-dashboard.yml @@ -32,6 +32,7 @@ jobs: env: GITHUB_HEAD_REF: ${{ github.head_ref }} GITHUB_REF_NAME: ${{ github.ref_name }} + PR_NUMBER: ${{ github.event.number }} run: | if [ "$GITHUB_HEAD_REF" != "" ]; then # This is a pull request @@ -43,9 +44,7 @@ jobs: TARGET_PATH=projects-dashboard if [ "$BRANCH" != "main" ]; then - # sanitize branch name - BRANCH=$(echo "$BRANCH" | sed 's/[^a-zA-Z0-9-]/_/g') - TARGET_PATH=projects-dashboard-preview-$BRANCH + TARGET_PATH=projects-dashboard-preview-pr-$PR_NUMBER fi echo "path=$TARGET_PATH" >> $GITHUB_OUTPUT diff --git a/projects-dashboard/src/content/project/square_workflow-kotlin.md b/projects-dashboard/src/content/project/square_workflow-kotlin.md new file mode 100644 index 0000000..239bf01 --- /dev/null +++ b/projects-dashboard/src/content/project/square_workflow-kotlin.md @@ -0,0 +1,60 @@ +--- +repo: + owner: "square" + name: "workflow-kotlin" + defaultBranch: "main" +title: "Workflow Kotlin" +description: "A Kotlin library for making composable state machines, and UIs driven by those state machines." +branding: "square" +lifeCycleStatus: "mature" +website: "https://square.github.io/workflow/" +ciChecks: + - type: "github-actions" + label: "build" + value: "kotlin.yml" +licenses: + - type: "github-license" +contributing: + - type: "code-of-conduct" + value: "CODE_OF_CONDUCT.md" + - type: "contribution-guidelines" + value: "CONTRIBUTING.md" + - type: "issues" + - type: "slack" + label: "#squarelibraries" + value: "https://kotlinlang.slack.com/messages/C5HT9AL7Q" + +packages: + - packageName: "workflow-core" + repoPath: "workflow-core" + language: "kotlin" + artifacts: + - type: "maven" + value: "com.squareup.workflow1/workflow-core-jvm" + - type: "reference-docs" + value: "https://square.github.io/workflow/kotlin/api/htmlMultiModule/workflow-core" + - packageName: "workflow-rx2" + repoPath: "workflow-rx2" + language: "kotlin" + artifacts: + - type: "maven" + value: "com.squareup.workflow1/workflow-rx2" + - type: "reference-docs" + value: "https://square.github.io/workflow/workflow-rx2/" + - packageName: "workflow-testing-jvm" + repoPath: "workflow-testing" + language: "kotlin" + artifacts: + - type: "maven" + value: "com.squareup.workflow1/workflow-testing-jvm" + - type: "reference-docs" + value: "https://square.github.io/workflow/kotlin/api/htmlMultiModule/workflow-testing" + - packageName: "workflow-ui-core-android" + repoPath: "workflow-ui/core-android" + language: "kotlin" + artifacts: + - type: "maven" + value: "com.squareup.workflow1/workflow-ui-core-android" + - type: "reference-docs" + value: "https://square.github.io/workflow/kotlin/api/htmlMultiModule/workflow-ui/core-android" +---