mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-06-13 01:51:09 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e7def6155 | ||
|
|
e8d233181c | ||
|
|
6f7a8d2348 |
2
.github/workflows/check-variables.yml
vendored
2
.github/workflows/check-variables.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Load environment variables for testing
|
- name: Load environment variables for testing
|
||||||
uses: rlespinasse/github-slug-action@v5
|
uses: rlespinasse/github-slug-action@v5
|
||||||
|
|||||||
2
.github/workflows/linter.yml
vendored
2
.github/workflows/linter.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
statuses: write
|
statuses: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
# Full git history is needed to get a proper
|
# Full git history is needed to get a proper
|
||||||
# list of changed files within `super-linter`
|
# list of changed files within `super-linter`
|
||||||
|
|||||||
16
.github/workflows/v5-tests-and-release.yml
vendored
16
.github/workflows/v5-tests-and-release.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Load this action from HEAD
|
- name: Load this action from HEAD
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -94,7 +94,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
path: this-action
|
path: this-action
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
@@ -122,7 +122,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Load this action from HEAD
|
- name: Load this action from HEAD
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -207,7 +207,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
path: this-action
|
path: this-action
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
@@ -230,7 +230,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
# Test 1
|
# Test 1
|
||||||
- name: Using correct short length
|
- name: Using correct short length
|
||||||
@@ -269,7 +269,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
path: this-action
|
path: this-action
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
@@ -323,7 +323,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
# Test 1
|
# Test 1
|
||||||
- name: Using correct slug max length
|
- name: Using correct slug max length
|
||||||
@@ -395,7 +395,7 @@ jobs:
|
|||||||
- input-slug-maxlength
|
- input-slug-maxlength
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
- name: Release this GitHub Action
|
- name: Release this GitHub Action
|
||||||
uses: rlespinasse/release-that@v1
|
uses: rlespinasse/release-that@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
22
action.yml
22
action.yml
@@ -27,42 +27,42 @@ runs:
|
|||||||
INPUT_SHORT_LENGTH: ${{ inputs.short-length }}
|
INPUT_SHORT_LENGTH: ${{ inputs.short-length }}
|
||||||
|
|
||||||
# From Environment Variables
|
# From Environment Variables
|
||||||
- uses: rlespinasse/slugify-value@v1.4.0
|
- uses: rlespinasse/slugify-value@a4879db1eb3db9bbee01dca36f98a8236c2b8239 # v1.4.0
|
||||||
with:
|
with:
|
||||||
key: GITHUB_REPOSITORY
|
key: GITHUB_REPOSITORY
|
||||||
value: ${{ github.repository }}
|
value: ${{ github.repository }}
|
||||||
prefix: ${{ inputs.prefix }}
|
prefix: ${{ inputs.prefix }}
|
||||||
slug-maxlength: ${{ inputs.slug-maxlength }}
|
slug-maxlength: ${{ inputs.slug-maxlength }}
|
||||||
- uses: rlespinasse/slugify-value@v1.4.0
|
- uses: rlespinasse/slugify-value@a4879db1eb3db9bbee01dca36f98a8236c2b8239 # v1.4.0
|
||||||
with:
|
with:
|
||||||
key: GITHUB_REF
|
key: GITHUB_REF
|
||||||
prefix: ${{ inputs.prefix }}
|
prefix: ${{ inputs.prefix }}
|
||||||
slug-maxlength: ${{ inputs.slug-maxlength }}
|
slug-maxlength: ${{ inputs.slug-maxlength }}
|
||||||
- uses: rlespinasse/slugify-value@v1.4.0
|
- uses: rlespinasse/slugify-value@a4879db1eb3db9bbee01dca36f98a8236c2b8239 # v1.4.0
|
||||||
with:
|
with:
|
||||||
key: GITHUB_HEAD_REF
|
key: GITHUB_HEAD_REF
|
||||||
prefix: ${{ inputs.prefix }}
|
prefix: ${{ inputs.prefix }}
|
||||||
slug-maxlength: ${{ inputs.slug-maxlength }}
|
slug-maxlength: ${{ inputs.slug-maxlength }}
|
||||||
- uses: rlespinasse/slugify-value@v1.4.0
|
- uses: rlespinasse/slugify-value@a4879db1eb3db9bbee01dca36f98a8236c2b8239 # v1.4.0
|
||||||
with:
|
with:
|
||||||
key: GITHUB_BASE_REF
|
key: GITHUB_BASE_REF
|
||||||
prefix: ${{ inputs.prefix }}
|
prefix: ${{ inputs.prefix }}
|
||||||
slug-maxlength: ${{ inputs.slug-maxlength }}
|
slug-maxlength: ${{ inputs.slug-maxlength }}
|
||||||
|
|
||||||
# From Specific values
|
# From Specific values
|
||||||
- uses: rlespinasse/slugify-value@v1.4.0
|
- uses: rlespinasse/slugify-value@a4879db1eb3db9bbee01dca36f98a8236c2b8239 # v1.4.0
|
||||||
with:
|
with:
|
||||||
key: GITHUB_EVENT_REF
|
key: GITHUB_EVENT_REF
|
||||||
value: ${{ github.event.ref }}
|
value: ${{ github.event.ref }}
|
||||||
prefix: ${{ inputs.prefix }}
|
prefix: ${{ inputs.prefix }}
|
||||||
slug-maxlength: ${{ inputs.slug-maxlength }}
|
slug-maxlength: ${{ inputs.slug-maxlength }}
|
||||||
- uses: rlespinasse/slugify-value@v1.4.0
|
- uses: rlespinasse/slugify-value@a4879db1eb3db9bbee01dca36f98a8236c2b8239 # v1.4.0
|
||||||
with:
|
with:
|
||||||
key: GITHUB_REF_NAME
|
key: GITHUB_REF_NAME
|
||||||
value: ${{ github.ref_name }}
|
value: ${{ github.ref_name }}
|
||||||
prefix: ${{ inputs.prefix }}
|
prefix: ${{ inputs.prefix }}
|
||||||
slug-maxlength: ${{ inputs.slug-maxlength }}
|
slug-maxlength: ${{ inputs.slug-maxlength }}
|
||||||
- uses: rlespinasse/slugify-value@v1.4.0
|
- uses: rlespinasse/slugify-value@a4879db1eb3db9bbee01dca36f98a8236c2b8239 # v1.4.0
|
||||||
with:
|
with:
|
||||||
key: GITHUB_REF_POINT
|
key: GITHUB_REF_POINT
|
||||||
value: ${{ env.GITHUB_HEAD_REF_RAW || env.GITHUB_REF_NAME_RAW }}
|
value: ${{ env.GITHUB_HEAD_REF_RAW || env.GITHUB_REF_NAME_RAW }}
|
||||||
@@ -82,7 +82,7 @@ runs:
|
|||||||
echo "::set-output name=github-repository-owner-part::${ownerpart}"
|
echo "::set-output name=github-repository-owner-part::${ownerpart}"
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
- uses: rlespinasse/slugify-value@v1.4.0
|
- uses: rlespinasse/slugify-value@a4879db1eb3db9bbee01dca36f98a8236c2b8239 # v1.4.0
|
||||||
with:
|
with:
|
||||||
key: GITHUB_REPOSITORY_OWNER_PART
|
key: GITHUB_REPOSITORY_OWNER_PART
|
||||||
value: ${{ steps.get-github-repository-owner-part.outputs.github-repository-owner-part }}
|
value: ${{ steps.get-github-repository-owner-part.outputs.github-repository-owner-part }}
|
||||||
@@ -97,7 +97,7 @@ runs:
|
|||||||
echo "::set-output name=github-repository-name-part::${namepart}"
|
echo "::set-output name=github-repository-name-part::${namepart}"
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
- uses: rlespinasse/slugify-value@v1.4.0
|
- uses: rlespinasse/slugify-value@a4879db1eb3db9bbee01dca36f98a8236c2b8239 # v1.4.0
|
||||||
with:
|
with:
|
||||||
key: GITHUB_REPOSITORY_NAME_PART
|
key: GITHUB_REPOSITORY_NAME_PART
|
||||||
value: ${{ steps.get-github-repository-name-part.outputs.github-repository-name-part }}
|
value: ${{ steps.get-github-repository-name-part.outputs.github-repository-name-part }}
|
||||||
@@ -105,13 +105,13 @@ runs:
|
|||||||
slug-maxlength: ${{ inputs.slug-maxlength }}
|
slug-maxlength: ${{ inputs.slug-maxlength }}
|
||||||
|
|
||||||
# From sha
|
# From sha
|
||||||
- uses: rlespinasse/shortify-git-revision@v1.6.0
|
- uses: rlespinasse/shortify-git-revision@c90ba7007ef6c152254d10b9f1a327966ab13077 # v1.6.0
|
||||||
with:
|
with:
|
||||||
name: GITHUB_SHA
|
name: GITHUB_SHA
|
||||||
short-on-error: true
|
short-on-error: true
|
||||||
length: ${{ steps.prefligth.outputs.PREFLIGHT_SHORT_LENGTH }}
|
length: ${{ steps.prefligth.outputs.PREFLIGHT_SHORT_LENGTH }}
|
||||||
prefix: ${{ inputs.prefix }}
|
prefix: ${{ inputs.prefix }}
|
||||||
- uses: rlespinasse/shortify-git-revision@v1.6.0
|
- uses: rlespinasse/shortify-git-revision@c90ba7007ef6c152254d10b9f1a327966ab13077 # v1.6.0
|
||||||
with:
|
with:
|
||||||
name: GITHUB_EVENT_PULL_REQUEST_HEAD_SHA
|
name: GITHUB_EVENT_PULL_REQUEST_HEAD_SHA
|
||||||
revision: ${{ github.event.pull_request.head.sha }}
|
revision: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|||||||
Reference in New Issue
Block a user