mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-07-20 18:22:42 +00:00
ci: enable v4.x release
This commit is contained in:
25
.github/workflows/github-slug-action.yml
vendored
25
.github/workflows/github-slug-action.yml
vendored
@@ -113,16 +113,15 @@ jobs:
|
|||||||
echo "pull request sha : ${{ env.V4_GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}"
|
echo "pull request sha : ${{ env.V4_GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
# TODO uncomment when ready to release on v4.x branch
|
release:
|
||||||
#release:
|
runs-on: ubuntu-latest
|
||||||
# runs-on: ubuntu-latest
|
concurrency:
|
||||||
# concurrency:
|
group: release-${{ github.ref }}-${{ github.event_name }}
|
||||||
# group: release-${{ github.ref }}-${{ github.event_name }}
|
needs: os-testing
|
||||||
# needs: os-testing
|
steps:
|
||||||
# steps:
|
- name: Checkout
|
||||||
# - name: Checkout
|
uses: actions/checkout@v2
|
||||||
# uses: actions/checkout@v2
|
- name: Release this GitHub Action
|
||||||
# - name: Release this GitHub Action
|
uses: rlespinasse/release-that@v1
|
||||||
# uses: rlespinasse/release-that@v1.x
|
with:
|
||||||
# with:
|
without-prefix: true
|
||||||
# without-prefix: true
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ This GitHub Action will expose the slug/short values of [some GitHub environment
|
|||||||
|
|
||||||
- `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 an URL
|
||||||
- Like `SLUG` but `.` is also replaced by `-`
|
- Like `SLUG` but `.` is 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
|
||||||
- `<KEY>_PART` on a variable will give a part of a variable defined by a key
|
- `<KEY>_PART` on a variable will give a part of a variable defined by a key
|
||||||
- Like `GITHUB_REPOSITORY_OWNER_PART` for the owner part of `GITHUB_REPOSITORY`
|
- Like `GITHUB_REPOSITORY_OWNER_PART` for the owner part of `GITHUB_REPOSITORY`
|
||||||
@@ -56,14 +56,14 @@ Add this in your workflow
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4.x
|
uses: rlespinasse/github-slug-action@v4
|
||||||
```
|
```
|
||||||
|
|
||||||
Or with a prefix
|
Or with a prefix
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Inject slug/short variables
|
- name: Inject slug/short variables
|
||||||
uses: rlespinasse/github-slug-action@v4.x
|
uses: rlespinasse/github-slug-action@v4
|
||||||
with:
|
with:
|
||||||
prefix: CI_
|
prefix: CI_
|
||||||
```
|
```
|
||||||
@@ -172,7 +172,7 @@ Download action repository 'rlespinasse/github-slug-action@master'
|
|||||||
>
|
>
|
||||||
> The master branch EOL has been set to **2020-10-25** after a 6-month deprecation period (more information on the [EOL issue][issue-15])
|
> The master branch EOL has been set to **2020-10-25** after a 6-month deprecation period (more information on the [EOL issue][issue-15])
|
||||||
|
|
||||||
Please, use the current branch `v4.x` or a version tag (see [releases pages][releases]) in order to fix your workflow.
|
Please, use the current branch tag `v4`, branch `v4.x` or a version tag (see [releases pages][releases]) in order to fix your workflow.
|
||||||
|
|
||||||
## Thanks for talking about us
|
## Thanks for talking about us
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: rlespinasse/github-slug-action@v4.x
|
- uses: rlespinasse/github-slug-action@v4
|
||||||
- name: Output
|
- name: Output
|
||||||
run: |
|
run: |
|
||||||
echo "Partial variables"
|
echo "Partial variables"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: rlespinasse/github-slug-action@v4.x
|
- uses: rlespinasse/github-slug-action@v4
|
||||||
- name: Output
|
- name: Output
|
||||||
run: |
|
run: |
|
||||||
echo "Partial variables"
|
echo "Partial variables"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: rlespinasse/github-slug-action@v4.x
|
- uses: rlespinasse/github-slug-action@v4
|
||||||
- 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"
|
||||||
|
|
||||||
@@ -15,6 +15,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: rlespinasse/github-slug-action@v4.x
|
- uses: rlespinasse/github-slug-action@v4
|
||||||
- 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 }}"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: rlespinasse/github-slug-action@v4.x
|
- uses: rlespinasse/github-slug-action@v4
|
||||||
- name: Output
|
- name: Output
|
||||||
run: |
|
run: |
|
||||||
echo "Partial variables"
|
echo "Partial variables"
|
||||||
|
|||||||
Reference in New Issue
Block a user