mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-06-30 09:51:45 +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 }}"
|
||||
shell: bash
|
||||
|
||||
# TODO uncomment when ready to release on v4.x branch
|
||||
#release:
|
||||
# runs-on: ubuntu-latest
|
||||
# concurrency:
|
||||
# group: release-${{ github.ref }}-${{ github.event_name }}
|
||||
# needs: os-testing
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v2
|
||||
# - name: Release this GitHub Action
|
||||
# uses: rlespinasse/release-that@v1.x
|
||||
# with:
|
||||
# without-prefix: true
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: release-${{ github.ref }}-${{ github.event_name }}
|
||||
needs: os-testing
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Release this GitHub Action
|
||||
uses: rlespinasse/release-that@v1
|
||||
with:
|
||||
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
|
||||
- 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
|
||||
- `<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`
|
||||
@@ -56,14 +56,14 @@ Add this in your workflow
|
||||
|
||||
```yaml
|
||||
- name: Inject slug/short variables
|
||||
uses: rlespinasse/github-slug-action@v4.x
|
||||
uses: rlespinasse/github-slug-action@v4
|
||||
```
|
||||
|
||||
Or with a prefix
|
||||
|
||||
```yaml
|
||||
- name: Inject slug/short variables
|
||||
uses: rlespinasse/github-slug-action@v4.x
|
||||
uses: rlespinasse/github-slug-action@v4
|
||||
with:
|
||||
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])
|
||||
|
||||
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
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: rlespinasse/github-slug-action@v4.x
|
||||
- uses: rlespinasse/github-slug-action@v4
|
||||
- name: Output
|
||||
run: |
|
||||
echo "Partial variables"
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: rlespinasse/github-slug-action@v4.x
|
||||
- uses: rlespinasse/github-slug-action@v4
|
||||
- name: Output
|
||||
run: |
|
||||
echo "Partial variables"
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: rlespinasse/github-slug-action@v4.x
|
||||
- uses: rlespinasse/github-slug-action@v4
|
||||
- run: |
|
||||
./deploy-application.sh --url "https://${{ env.GITHUB_REF_SLUG_URL }}.staging.app.example.com"
|
||||
|
||||
@@ -15,6 +15,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: rlespinasse/github-slug-action@v4.x
|
||||
- uses: rlespinasse/github-slug-action@v4
|
||||
- run: |
|
||||
./deploy-application.sh --url "https://staging.app.example.com/${{ env.GITHUB_REF_SLUG_URL }}"
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: rlespinasse/github-slug-action@v4.x
|
||||
- uses: rlespinasse/github-slug-action@v4
|
||||
- name: Output
|
||||
run: |
|
||||
echo "Partial variables"
|
||||
|
||||
Reference in New Issue
Block a user