build: prepare v5.x branch (#148)

Signed-off-by: Romain Lespinasse <romain.lespinasse@gmail.com>
This commit is contained in:
Romain Lespinasse
2024-11-01 10:11:33 +01:00
committed by GitHub
parent c6c92fed42
commit 63a442f83b
9 changed files with 88 additions and 84 deletions

View File

@@ -3,6 +3,8 @@ name: Lint Code Base
on: pull_request on: pull_request
permissions: read-all
jobs: jobs:
build: build:
name: Lint Code Base name: Lint Code Base
@@ -15,13 +17,15 @@ jobs:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
# Full git history is needed to get a proper list of changed files within `super-linter` # Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0 fetch-depth: 0
- name: Lint Code Base - name: Lint Code Base
uses: github/super-linter@v7 uses: github/super-linter@v7
env: env:
VALIDATE_ALL_CODEBASE: false VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: v4.x VALIDATE_JSON_PRETTIER: false
VALIDATE_MARKDOWN_PRETTIER: false
DEFAULT_BRANCH: v5.x
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,8 +1,9 @@
name: '[v4] Test and Release' name: "[v5] Test and Release"
on: [push, pull_request] on: [push, pull_request]
permissions: read-all
jobs: jobs:
check-v3compatibility: check-v4-compatibility:
name: 'Check v3 compatibility' name: "Check v4 compatibility"
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -12,14 +13,13 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Load using v4.x with prefix - name: Load this action from HEAD
uses: ./ uses: ./
- name: Load using v4
uses: rlespinasse/github-slug-action@v4
with: with:
prefix: V4_ prefix: V4_
short-length: 8
- name: Load using v3.x
uses: rlespinasse/github-slug-action@v3.x
- name: Validate // Partial variables - name: Validate // Partial variables
run: | run: |
@@ -83,10 +83,10 @@ jobs:
[[ "${{ env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}" == "${{ env.V4_GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}" ]] [[ "${{ env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}" == "${{ env.V4_GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}" ]]
shell: bash shell: bash
check-v3compatibility-without-checkout: check-v4-compatibility-without-checkout:
name: 'Check v3 compatibility (without checkout)' name: "Check v4 compatibility (without checkout)"
needs: needs:
- check-v3compatibility - check-v4-compatibility
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -99,14 +99,13 @@ jobs:
path: this-action path: this-action
ref: ${{ github.ref }} ref: ${{ github.ref }}
- name: Load using v4.x with prefix - name: Load this action from HEAD
uses: ./this-action uses: ./this-action
- name: Load using v4
uses: rlespinasse/github-slug-action@v4
with: with:
prefix: V4_ prefix: V4_
short-length: 8
- name: Load using v3.x
uses: rlespinasse/github-slug-action@v3.x
- name: Validate // Short SHA variables - name: Validate // Short SHA variables
run: | run: |
@@ -115,7 +114,7 @@ jobs:
shell: bash shell: bash
display: display:
name: 'Display produced variables' name: "Display produced variables"
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -125,7 +124,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Load using v4.x - name: Load this action from HEAD
uses: ./ uses: ./
- name: Partial variables - name: Partial variables
@@ -144,6 +143,7 @@ jobs:
echo "base ref : ${{ env.GITHUB_BASE_REF_SLUG }}" echo "base ref : ${{ env.GITHUB_BASE_REF_SLUG }}"
echo "event ref : ${{ env.GITHUB_EVENT_REF_SLUG }}" echo "event ref : ${{ env.GITHUB_EVENT_REF_SLUG }}"
shell: bash shell: bash
- name: Slug variables (Case Sensitive) - name: Slug variables (Case Sensitive)
run: | run: |
echo "repository : ${{ env.GITHUB_REPOSITORY_SLUG_CS }}" echo "repository : ${{ env.GITHUB_REPOSITORY_SLUG_CS }}"
@@ -154,6 +154,7 @@ jobs:
echo "base ref : ${{ env.GITHUB_BASE_REF_SLUG_CS }}" echo "base ref : ${{ env.GITHUB_BASE_REF_SLUG_CS }}"
echo "event ref : ${{ env.GITHUB_EVENT_REF_SLUG_CS }}" echo "event ref : ${{ env.GITHUB_EVENT_REF_SLUG_CS }}"
shell: bash shell: bash
- name: Slug URL variables - name: Slug URL variables
run: | run: |
echo "repository : ${{ env.GITHUB_REPOSITORY_SLUG_URL }}" echo "repository : ${{ env.GITHUB_REPOSITORY_SLUG_URL }}"
@@ -164,6 +165,7 @@ jobs:
echo "base ref : ${{ env.GITHUB_BASE_REF_SLUG_URL }}" echo "base ref : ${{ env.GITHUB_BASE_REF_SLUG_URL }}"
echo "event ref : ${{ env.GITHUB_EVENT_REF_SLUG_URL }}" echo "event ref : ${{ env.GITHUB_EVENT_REF_SLUG_URL }}"
shell: bash shell: bash
- name: Slug URL variables (Case Sensitive) - name: Slug URL variables (Case Sensitive)
run: | run: |
echo "repository : ${{ env.GITHUB_REPOSITORY_SLUG_URL_CS }}" echo "repository : ${{ env.GITHUB_REPOSITORY_SLUG_URL_CS }}"
@@ -191,7 +193,7 @@ jobs:
shell: bash shell: bash
display-without-checkout: display-without-checkout:
name: 'Display produced variables (without checkout)' name: "Display produced variables (without checkout)"
needs: needs:
- display - display
strategy: strategy:
@@ -206,14 +208,8 @@ jobs:
path: this-action path: this-action
ref: ${{ github.ref }} ref: ${{ github.ref }}
- name: Load using v4.x with prefix - name: Load this action from HEAD
uses: ./this-action uses: ./this-action
with:
prefix: V4_
short-length: 8
- name: Load using v3.x
uses: rlespinasse/github-slug-action@v3.x
- name: Short SHA variables - name: Short SHA variables
run: | run: |
@@ -236,11 +232,11 @@ jobs:
- name: Using correct short length - name: Using correct short length
uses: ./ uses: ./
with: with:
prefix: 'CSL_' prefix: "CSL_"
short-length: 4 short-length: 4
- name: Using correct length // Validate that all short variables lengths are equals to short-length - name: Using correct length // Validate that all short variables lengths are equals to short-length
run: | run: |
env | grep "CSL_" | grep "_SHORT" | cut -d"=" -f2 | while read -r value; do [ "$(echo "$value" | wc -m)" -le 5 ] ; done env | grep "CSL_" | grep "_SHORT" | cut -d"=" -f2 | while read -r value; do [ "${#value}" -le 5 ] ; done
shell: bash shell: bash
# Test 2 # Test 2
@@ -248,12 +244,12 @@ jobs:
id: using-wrong-short-length id: using-wrong-short-length
uses: ./ uses: ./
with: with:
prefix: 'WSL_' prefix: "WSL_"
short-length: 'wrong' short-length: "wrong"
continue-on-error: true continue-on-error: true
- name: Using wrong short length // Validate that the action end with an error - name: Using wrong short length // Validate that the action end with an error
run: | run: |
[[ "$(env | grep "WSL_" | grep "_SHORT" | wc -l)" -eq 0 ]] [[ "$(env | grep "WSL_" | grep "_SHORT" -c)" -eq 0 ]]
[[ "${{ steps.using-wrong-short-length.outcome }}" == "failure" ]] [[ "${{ steps.using-wrong-short-length.outcome }}" == "failure" ]]
[[ "${{ steps.using-wrong-short-length.conclusion }}" == "success" ]] [[ "${{ steps.using-wrong-short-length.conclusion }}" == "success" ]]
shell: bash shell: bash
@@ -278,11 +274,11 @@ jobs:
- name: Using correct short length - name: Using correct short length
uses: ./this-action uses: ./this-action
with: with:
prefix: 'CSL_' prefix: "CSL_"
short-length: 4 short-length: 4
- name: Using correct length // Validate that all short variables lengths are equals to short-length - name: Using correct length // Validate that all short variables lengths are equals to short-length
run: | run: |
env | grep "CSL_" | grep "_SHORT" | cut -d"=" -f2 | while read -r value; do [ "$(echo "$value" | wc -m)" -le 5 ] ; done env | grep "CSL_" | grep "_SHORT" | cut -d"=" -f2 | while read -r value; do [ "${#value}" -le 5 ] ; done
shell: bash shell: bash
# Test 2 # Test 2
@@ -290,11 +286,11 @@ jobs:
id: using-empty-short-length id: using-empty-short-length
uses: ./this-action uses: ./this-action
with: with:
prefix: 'ESL_' prefix: "ESL_"
continue-on-error: true continue-on-error: true
- name: Using empty short length // Validate that the action don't end with an error - name: Using empty short length // Validate that the action don't end with an error
run: | run: |
[[ "$(env | grep "ESL_" | grep "_SHORT" | wc -l)" -gt 0 ]] [[ "$(env | grep "ESL_" | grep "_SHORT" -c)" -gt 0 ]]
[[ "${{ steps.using-empty-short-length.outcome }}" == "success" ]] [[ "${{ steps.using-empty-short-length.outcome }}" == "success" ]]
[[ "${{ steps.using-empty-short-length.conclusion }}" == "success" ]] [[ "${{ steps.using-empty-short-length.conclusion }}" == "success" ]]
shell: bash shell: bash
@@ -304,12 +300,12 @@ jobs:
id: using-wrong-short-length id: using-wrong-short-length
uses: ./this-action uses: ./this-action
with: with:
prefix: 'WSL_' prefix: "WSL_"
short-length: 'wrong' short-length: "wrong"
continue-on-error: true continue-on-error: true
- name: Using wrong short length // Validate that the action end with an error - name: Using wrong short length // Validate that the action end with an error
run: | run: |
[[ "$(env | grep "WSL_" | grep "_SHORT" | wc -l)" -eq 0 ]] [[ "$(env | grep "WSL_" | grep "_SHORT" -c)" -eq 0 ]]
[[ "${{ steps.using-wrong-short-length.outcome }}" == "failure" ]] [[ "${{ steps.using-wrong-short-length.outcome }}" == "failure" ]]
[[ "${{ steps.using-wrong-short-length.conclusion }}" == "success" ]] [[ "${{ steps.using-wrong-short-length.conclusion }}" == "success" ]]
shell: bash shell: bash
@@ -329,11 +325,11 @@ jobs:
- name: Using correct slug max length - name: Using correct slug max length
uses: ./ uses: ./
with: with:
prefix: 'CML_' prefix: "CML_"
slug-maxlength: 1 slug-maxlength: 1
- name: Using correct max length // Validate that all slug variables lengths are equals or under the slug-maxlength - name: Using correct max length // Validate that all slug variables lengths are equals or under the slug-maxlength
run: | run: |
env | grep "CML_" | grep "_SLUG" | cut -d"=" -f2 | while read -r value; do [ "$(echo "$value" | wc -m)" -le 2 ] ; done env | grep "CML_" | grep "_SLUG" | cut -d"=" -f2 | while read -r value; do [ "${#value}" -le 2 ] ; done
shell: bash shell: bash
# Test 2 # Test 2
@@ -341,12 +337,12 @@ jobs:
id: using-wrong-slug-max-length id: using-wrong-slug-max-length
uses: ./ uses: ./
with: with:
prefix: 'WML_' prefix: "WML_"
slug-maxlength: 'wrong' slug-maxlength: "wrong"
continue-on-error: true continue-on-error: true
- name: Using wrong slug max length // Validate that the action end with an error - name: Using wrong slug max length // Validate that the action end with an error
run: | run: |
[[ "$(env | grep "WML_" | grep "_SLUG" | wc -l)" -eq 0 ]] [[ "$(env | grep "WML_" | grep "_SLUG" -c)" -eq 0 ]]
[[ "${{ steps.using-wrong-slug-max-length.outcome }}" == "failure" ]] [[ "${{ steps.using-wrong-slug-max-length.outcome }}" == "failure" ]]
[[ "${{ steps.using-wrong-slug-max-length.conclusion }}" == "success" ]] [[ "${{ steps.using-wrong-slug-max-length.conclusion }}" == "success" ]]
shell: bash shell: bash
@@ -356,12 +352,12 @@ jobs:
id: using-empty-slug-max-length id: using-empty-slug-max-length
uses: ./ uses: ./
with: with:
prefix: 'EML_' prefix: "EML_"
slug-maxlength: '' slug-maxlength: ""
continue-on-error: true continue-on-error: true
- name: Using empty slug max length // Validate that the action end with an error - name: Using empty slug max length // Validate that the action end with an error
run: | run: |
[[ "$(env | grep "EML_" | grep "_SLUG" | wc -l)" -eq 0 ]] [[ "$(env | grep "EML_" | grep "_SLUG" -c)" -eq 0 ]]
[[ "${{ steps.using-empty-slug-max-length.outcome }}" == "failure" ]] [[ "${{ steps.using-empty-slug-max-length.outcome }}" == "failure" ]]
[[ "${{ steps.using-empty-slug-max-length.conclusion }}" == "success" ]] [[ "${{ steps.using-empty-slug-max-length.conclusion }}" == "success" ]]
shell: bash shell: bash
@@ -371,21 +367,25 @@ jobs:
id: using-nolimit-slug-max-length id: using-nolimit-slug-max-length
uses: ./ uses: ./
with: with:
prefix: 'NLML_' prefix: "NLML_"
slug-maxlength: 'nolimit' slug-maxlength: "nolimit"
- name: Using no limit on slug max length // Validate that the action end with an error - name: Using no limit on slug max length // Validate that the action end with an error
run: | run: |
[[ "$(env | grep "NLML_" | grep "_SLUG" | wc -l)" -gt 0 ]] [[ "$(env | grep "NLML_" | grep "_SLUG" -c)" -gt 0 ]]
[[ "${{ steps.using-nolimit-slug-max-length.outcome }}" == "success" ]] [[ "${{ steps.using-nolimit-slug-max-length.outcome }}" == "success" ]]
[[ "${{ steps.using-nolimit-slug-max-length.conclusion }}" == "success" ]] [[ "${{ steps.using-nolimit-slug-max-length.conclusion }}" == "success" ]]
shell: bash shell: bash
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
issues: write
id-token: write
packages: write
concurrency: concurrency:
group: release-${{ github.ref }}-${{ github.event_name }} group: release-${{ github.ref }}-${{ github.event_name }}
needs: needs:
- check-v3compatibility-without-checkout
- display-without-checkout - display-without-checkout
- input-short-length-without-checkout - input-short-length-without-checkout
- input-slug-maxlength - input-slug-maxlength

View File

@@ -19,7 +19,7 @@ This GitHub Action will expose the slug/short values of [some GitHub environment
- [The SHORT variables doesn't have the same lengths as before](#the-short-variables-doesnt-have-the-same-lengths-as-before) - [The SHORT variables doesn't have the same lengths as before](#the-short-variables-doesnt-have-the-same-lengths-as-before)
- [One of the environment variables doesn't work as intended](#one-of-the-environment-variables-doesnt-work-as-intended) - [One of the environment variables doesn't work as intended](#one-of-the-environment-variables-doesnt-work-as-intended)
- [Known environment variable conflicts](#known-environment-variable-conflicts) - [Known environment variable conflicts](#known-environment-variable-conflicts)
- [GITHUB_REF_NAME](#github_ref_name) - [GITHUB\_REF\_NAME](#github_ref_name)
- [An action could not be found at the URI](#an-action-could-not-be-found-at-the-uri) - [An action could not be found at the URI](#an-action-could-not-be-found-at-the-uri)
- [Thanks for talking about us](#thanks-for-talking-about-us) - [Thanks for talking about us](#thanks-for-talking-about-us)
@@ -37,7 +37,7 @@ This GitHub Action will expose the slug/short values of [some GitHub environment
<summary>Others <b>Slug-ish</b> commands are available</summary> <summary>Others <b>Slug-ish</b> commands are available</summary>
<p> <p>
- `SLUG_URL` on a variable to have a `slug` variable compliant to be used in an URL - `SLUG_URL` on a variable to have a `slug` variable compliant to be used in a URL
- Like `SLUG` but `.`, and `_` are also replaced by `-` - Like `SLUG` but `.`, and `_` are also replaced by `-`
- `SHORT` on a variable will limit the string size to ~8 characters - `SHORT` on a variable will limit the string size to ~8 characters
- Useful for _sha_ value - Useful for _sha_ value
@@ -56,7 +56,7 @@ Add this in your workflow
```yaml ```yaml
- name: Inject slug/short variables - name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4 uses: rlespinasse/github-slug-action@v5
``` ```
<details> <details>
@@ -67,7 +67,7 @@ Add this in your workflow
```yaml ```yaml
- name: Inject slug/short variables - name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4 uses: rlespinasse/github-slug-action@v5
with: with:
prefix: CI_ prefix: CI_
``` ```
@@ -76,7 +76,7 @@ Add this in your workflow
```yaml ```yaml
- name: Inject slug/short variables - name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4 uses: rlespinasse/github-slug-action@v5
with: with:
slug-maxlength: 80 # Use 'nolimit' to remove use of a max length (Default to 63) slug-maxlength: 80 # Use 'nolimit' to remove use of a max length (Default to 63)
``` ```
@@ -85,12 +85,12 @@ Add this in your workflow
```yaml ```yaml
- name: Inject slug/short variables - name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4 uses: rlespinasse/github-slug-action@v5
with: with:
short-length: 7 # By default it's up to git to decide, use 8 to have the v3.x behavior short-length: 7 # By default it's up to Git to decide, use 8 to have the v3.x behavior
``` ```
**Warning**: If you leave it empty, you need to checkout the source first in order to let git decide the size by itself. **Warning**: If you leave it empty, you need to checkout the source first in order to let Git decide the size by itself.
</p> </p>
</details> </details>
@@ -102,14 +102,14 @@ Check for more [examples][examples] (OS usage, URL use, ...)
The short sha length is not the same as previous version. The short sha length is not the same as previous version.
- `v4` let git configuration decide of it (but you can override it), - Since `v4` let Git configuration decide of it (but you can override it),
- `v3` and before, it's always a length of 8 characters. - With `v3` and before, it's always a length of 8 characters.
So to reproduce previous behavior, use So to reproduce previous behavior, use
```yaml ```yaml
- name: Inject slug/short variables - name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4 uses: rlespinasse/github-slug-action@v5
with: with:
short-length: 8 # Same as v3 and before short-length: 8 # Same as v3 and before
``` ```
@@ -172,7 +172,7 @@ So to reproduce previous behavior, use
### The SHORT variables doesn't have the same lengths as before ### The SHORT variables doesn't have the same lengths as before
Since `v4`, it's git who manage the short variables by using [git rev-parse][git-revparse] behaviour. Since `v4`, it's Git who manage the short variables by using [git rev-parse][git-revparse] behaviour.
The length of a short sha depends of the size of our repository and can differ over time. The length of a short sha depends of the size of our repository and can differ over time.
To manage that moving length, you can use `short-length` input To manage that moving length, you can use `short-length` input
@@ -213,7 +213,7 @@ A possible workaround is to use `prefix` input
```yaml ```yaml
- name: Inject slug/short variables - name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4 uses: rlespinasse/github-slug-action@v5
with: with:
prefix: CI_ prefix: CI_
``` ```
@@ -235,7 +235,7 @@ If the `GIT_REFERENCE` value is
- `v4.x` or after, the branch don't exists anymore following the [end-of-life for a branch](SECURITY.md#end-of-life-of-a-branch) security process. - `v4.x` or after, the branch don't exists anymore following the [end-of-life for a branch](SECURITY.md#end-of-life-of-a-branch) security process.
- `master`, the branch don't exists anymore, read more about it on the corresponding issue ([EOL issue][issue-15]) - `master`, the branch don't exists anymore, read more about it on the corresponding issue ([EOL issue][issue-15])
Please, use the current major tag `v4` or a version tag (see [releases pages][releases]) in order to fix your workflow. Please, use the current major tag `v5` or a version tag (see [releases pages][releases]) in order to fix your workflow.
## Thanks for talking about us ## Thanks for talking about us
@@ -243,20 +243,20 @@ In English :gb:
- [Action spotlight by Michael Heap][article-2] - [Action spotlight by Michael Heap][article-2]
- [Serverless Deploy Previews on GitHub Actions][article-3] - [Serverless Deploy Previews on GitHub Actions][article-3]
- [Let's Build a Continuous Delivery and Branching Process with Github Actions, Vercel and Heroku][article-4] - [Let's Build a Continuous Delivery and Branching Process with GitHub Actions, Vercel and Heroku][article-4]
In French :fr: In French :fr:
- [Mettre en place une CI/CD Angular avec GitHub Actions & Netlify][article-1] - [Mettre en place une CI/CD Angular avec GitHub Actions & Netlify][article-1]
- [Github Actions : enfin des pipelines accessibles aux développeurs][talk-1] - [GitHub Actions : enfin des pipelines accessibles aux développeurs][talk-1]
In Chinese :cn: In Chinese :cn:
- [利用github-slug-action暴漏Github Action上下文中的关键变量][article-5] - [利用github-slug-action暴漏GitHub Action上下文中的关键变量][article-5]
> The next one is you. _Don't hesitate to add youself to one of these lists._ > The next one is you. _Don't hesitate to add youself to one of these lists._
[examples]: https://github.com/rlespinasse/github-slug-action/tree/v4.x/examples [examples]: https://github.com/rlespinasse/github-slug-action/tree/v5.x/examples
[custom-variable]: https://github.com/rlespinasse/github-slug-action/issues/new?assignees=&labels=enhancement&template=feature_request.md&title= [custom-variable]: https://github.com/rlespinasse/github-slug-action/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=
[releases]: https://github.com/rlespinasse/github-slug-action/releases [releases]: https://github.com/rlespinasse/github-slug-action/releases
[issue-15]: https://github.com/rlespinasse/github-slug-action/issues/15 [issue-15]: https://github.com/rlespinasse/github-slug-action/issues/15

View File

@@ -4,7 +4,8 @@
| Version | Supported | End of Support | Branch | Specific Tags | | Version | Supported | End of Support | Branch | Specific Tags |
| ------- | ------------------ | -------------- | ------ | ------------- | | ------- | ------------------ | -------------- | ------ | ------------- |
| 4.x | :white_check_mark: | | v4.x | v4 | | 5.x | :white_check_mark: | | v5.x | v5 |
| 4.x | :white_check_mark: | 2025-01-31 | v4.x | v4 |
| 3.x | :x: | 2024-01-31 | | v3.x, v3 | | 3.x | :x: | 2024-01-31 | | v3.x, v3 |
| 2.x | :x: | 2021-04-05 | | v2.x, 2.2.0 | | 2.x | :x: | 2021-04-05 | | v2.x, 2.2.0 |
| 1.x | :x: | 2021-04-05 | | v1.1.x, 1.2.0 | | 1.x | :x: | 2021-04-05 | | v1.1.x, 1.2.0 |

View File

@@ -6,8 +6,8 @@ jobs:
usage: usage:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: rlespinasse/github-slug-action@v4 - uses: rlespinasse/github-slug-action@v5
- name: Output - name: Output
run: | run: |
echo "Partial variables" echo "Partial variables"

View File

@@ -6,8 +6,8 @@ jobs:
usage: usage:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: rlespinasse/github-slug-action@v4 - uses: rlespinasse/github-slug-action@v5
- name: Output - name: Output
run: | run: |
echo "Partial variables" echo "Partial variables"

View File

@@ -6,15 +6,15 @@ jobs:
as_subdomain: as_subdomain:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: rlespinasse/github-slug-action@v4 - uses: rlespinasse/github-slug-action@v5
- run: | - run: |
./deploy-application.sh --url "https://${{ env.GITHUB_REF_SLUG_URL }}.staging.app.example.com" ./deploy-application.sh --url "https://${{ env.GITHUB_REF_SLUG_URL }}.staging.app.example.com"
as_resource_path: as_resource_path:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: rlespinasse/github-slug-action@v4 - uses: rlespinasse/github-slug-action@v5
- run: | - run: |
./deploy-application.sh --url "https://staging.app.example.com/${{ env.GITHUB_REF_SLUG_URL }}" ./deploy-application.sh --url "https://staging.app.example.com/${{ env.GITHUB_REF_SLUG_URL }}"

View File

@@ -6,8 +6,8 @@ jobs:
usage: usage:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: rlespinasse/github-slug-action@v4 - uses: rlespinasse/github-slug-action@v5
- name: Output - name: Output
run: | run: |
echo "Partial variables" echo "Partial variables"

View File

@@ -1 +0,0 @@