ci: enable v4.x release

This commit is contained in:
Romain Lespinasse
2022-01-01 14:23:29 +01:00
parent c1ec67827c
commit 78ed3f92ee
6 changed files with 21 additions and 22 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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"

View File

@@ -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 }}"

View File

@@ -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"