Skip to content

Commit

Permalink
Pass correct ref to release action (#22512)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored Aug 16, 2024
1 parent a954f3e commit 74446d1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/matomo-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
type: boolean
required: false
default: false
ref:
type: string
required: false
default: ''

permissions:
actions: read
Expand All @@ -33,7 +37,7 @@ permissions:
statuses: none

concurrency:
group: php-${{ github.ref }}
group: php-${{ inputs.ref || github.ref }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -66,7 +70,7 @@ jobs:
persist-credentials: false
submodules: true
path: matomo
ref: ${{ inputs.is_preview == true && '5.x-preview' || github.ref }}
ref: ${{ inputs.ref || github.ref }}
- name: running tests
uses: matomo-org/github-action-tests@main
with:
Expand All @@ -88,7 +92,7 @@ jobs:
persist-credentials: false
submodules: true
path: matomo
ref: ${{ inputs.is_preview == true && '5.x-preview' || github.ref }}
ref: ${{ inputs.ref || github.ref }}
- name: running tests
uses: matomo-org/github-action-tests@main
with:
Expand All @@ -105,7 +109,7 @@ jobs:
persist-credentials: false
submodules: true
path: matomo
ref: ${{ inputs.is_preview == true && '5.x-preview' || github.ref }}
ref: ${{ inputs.ref || github.ref }}
- name: running tests
uses: matomo-org/github-action-tests@main
with:
Expand All @@ -125,7 +129,7 @@ jobs:
persist-credentials: false
submodules: true
path: matomo
ref: ${{ inputs.is_preview == true && '5.x-preview' || github.ref }}
ref: ${{ inputs.ref || github.ref }}
- name: running tests
uses: matomo-org/github-action-tests@main
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ jobs:
needs.prepare_preview_version.outputs.has_new_version == '1'
with:
is_preview: true
ref: 5.x-preview

release_preview_version:
needs: [run_matomo_tests]
Expand All @@ -168,6 +169,7 @@ jobs:
needs.prepare_preview_version.outputs.has_new_version == '1'
with:
is_preview: true
ref: 5.x-preview
secrets:
RELEASE_PASSWORD: ${{ secrets.RELEASE_PASSWORD }}
GPG_CERTIFICATE: ${{ secrets.GPG_CERTIFICATE }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ on:
type: boolean
required: false
default: false
ref:
type: string
required: false
default: ''
secrets:
RELEASE_PASSWORD:
description: 'Release password'
Expand Down Expand Up @@ -68,6 +72,7 @@ jobs:
- uses: actions/checkout@v4
with:
lfs: false
ref: ${{ inputs.ref || github.ref }}
- name: Import GPG key
id: import_gpg
run: |
Expand Down

0 comments on commit 74446d1

Please sign in to comment.