mirror of
https://github.com/rlespinasse/slugify-value.git
synced 2026-06-13 01:51:24 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9694a6bf2 | ||
|
|
cbec62b21f | ||
|
|
a4879db1eb |
7
.github/dependabot.yml
vendored
Normal file
7
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
27
.github/workflows/linter.yml
vendored
Normal file
27
.github/workflows/linter.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
name: Lint Code Base
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Lint Code Base
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: read
|
||||||
|
statuses: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Lint Code Base
|
||||||
|
uses: github/super-linter@v5
|
||||||
|
env:
|
||||||
|
VALIDATE_ALL_CODEBASE: false
|
||||||
|
DEFAULT_BRANCH: v1.x
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
10
slugify.sh
10
slugify.sh
@@ -57,13 +57,21 @@ SLUG_CS_VALUE=$(slug "$CS_VALUE")
|
|||||||
SLUG_URL_VALUE=$(slug_url "$VALUE")
|
SLUG_URL_VALUE=$(slug_url "$VALUE")
|
||||||
SLUG_URL_CS_VALUE=$(slug_url "$CS_VALUE")
|
SLUG_URL_CS_VALUE=$(slug_url "$CS_VALUE")
|
||||||
|
|
||||||
|
if [ -f "$GITHUB_OUTPUT" ]; then
|
||||||
{
|
{
|
||||||
echo "value=${CS_VALUE}"
|
echo "value=${CS_VALUE}"
|
||||||
echo "slug=${SLUG_VALUE}"
|
echo "slug=${SLUG_VALUE}"
|
||||||
echo "slug-cs=${SLUG_CS_VALUE}"
|
echo "slug-cs=${SLUG_CS_VALUE}"
|
||||||
echo "slug-url=${SLUG_URL_VALUE}"
|
echo "slug-url=${SLUG_URL_VALUE}"
|
||||||
echo "slug-url-cs=${SLUG_URL_CS_VALUE}"
|
echo "slug-url-cs=${SLUG_URL_CS_VALUE}"
|
||||||
} >> $GITHUB_OUTPUT
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
else
|
||||||
|
echo "::set-output name=value::${CS_VALUE}"
|
||||||
|
echo "::set-output name=slug::${SLUG_VALUE}"
|
||||||
|
echo "::set-output name=slug-cs::${SLUG_CS_VALUE}"
|
||||||
|
echo "::set-output name=slug-url::${SLUG_URL_VALUE}"
|
||||||
|
echo "::set-output name=slug-url-cs::${SLUG_URL_CS_VALUE}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${INPUT_PUBLISH_ENV}" == "true" ]; then
|
if [ "${INPUT_PUBLISH_ENV}" == "true" ]; then
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user