3 Commits

Author SHA1 Message Date
Romain Lespinasse
b9694a6bf2 wip 2023-09-09 11:10:25 +02:00
Romain Lespinasse
cbec62b21f ci(linter): setup super linter workflow 2023-06-11 11:32:30 +02:00
Romain Lespinasse
a4879db1eb feat: support GHES step output management 2022-10-31 19:44:04 +01:00
3 changed files with 49 additions and 7 deletions

7
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,7 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

27
.github/workflows/linter.yml vendored Normal file
View 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 }}

View File

@@ -57,13 +57,21 @@ SLUG_CS_VALUE=$(slug "$CS_VALUE")
SLUG_URL_VALUE=$(slug_url "$VALUE")
SLUG_URL_CS_VALUE=$(slug_url "$CS_VALUE")
{
echo "value=${CS_VALUE}"
echo "slug=${SLUG_VALUE}"
echo "slug-cs=${SLUG_CS_VALUE}"
echo "slug-url=${SLUG_URL_VALUE}"
echo "slug-url-cs=${SLUG_URL_CS_VALUE}"
} >> $GITHUB_OUTPUT
if [ -f "$GITHUB_OUTPUT" ]; then
{
echo "value=${CS_VALUE}"
echo "slug=${SLUG_VALUE}"
echo "slug-cs=${SLUG_CS_VALUE}"
echo "slug-url=${SLUG_URL_VALUE}"
echo "slug-url-cs=${SLUG_URL_CS_VALUE}"
} >> "$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
{