From 4f0d1e1c1ac4c236335756e5282572a1c2495c5a Mon Sep 17 00:00:00 2001 From: Petro Kurbatskyi <67897517+ibexa-yuna@users.noreply.github.com> Date: Wed, 10 May 2023 12:22:20 +0200 Subject: [PATCH 1/2] IBX-5569: Switched to reusable generator workflow For more details see https://issues.ibexa.co/browse/IBX-5569 and https://github.com/ezsystems/ezplatform-solr-search-engine/pull/244 --- .github/workflows/release.yaml | 13 ++++++++++ .github/workflows/release.yml | 45 ---------------------------------- 2 files changed, 13 insertions(+), 45 deletions(-) create mode 100644 .github/workflows/release.yaml delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..bda8dc2d --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,13 @@ +name: Call Automatic Changelog Generator for tag Workflow + +on: + push: + tags: + - 'v*' + - '!v*-alpha*' + +jobs: + create_release_for_tag: + uses: ibexa/gh-workflows/.github/workflows/release_bundle.yml@main + secrets: + JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index ab450b39..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Automatic Changelog Generator for tag - -on: - push: - tags: - - 'v*' - - '!v*-alpha*' - -jobs: - release: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@master - - name: Set Environment - run: | - echo "BUILD_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - - - name: Get previous release tag based on type - id: prevrelease - uses: ibexa/version-logic-action@master - with: - currentTag: ${{ env.BUILD_TAG }} - - - name: Generate changelog - id: changelog - uses: ibexa/changelog-generator-action@v2 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - jira_token: ${{ secrets.JIRA_TOKEN }} - currentTag: ${{ env.BUILD_TAG }} - previousTag: ${{ steps.prevrelease.outputs.previousTag }} - - - name: Print the changelog - run: echo "${{ steps.changelog.outputs.changelog }}" - - - name: Create Release - id: create_release - uses: zendesk/action-create-release@v1 - with: - tag_name: ${{ env.BUILD_TAG }} - body: | - ${{ steps.changelog.outputs.changelog }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 0f2c4c85ecd4d0d1fd7843a66ac0c95d2982c66d Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Wed, 10 May 2023 13:38:19 +0200 Subject: [PATCH 2/2] [PHPStan] Updated baseline for ContentDocumentLocationFields.php:89 --- phpstan-baseline.neon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 8fb71d73..92cdbc9a 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -321,7 +321,7 @@ parameters: path: src/lib/FieldMapper/ContentFieldMapper/ContentDocumentLocationFields.php - - message: "#^Offset 'ancestors' does not exist on array\\{ancestors\\?\\: non\\-empty\\-array\\, ids\\: non\\-empty\\-array\\, parent_ids\\: non\\-empty\\-array\\, path_strings\\: non\\-empty\\-array\\, remote_ids\\: non\\-empty\\-array\\\\}\\.$#" + message: "#^Offset 'ancestors' does not exist on array\\{ancestors\\?\\: non\\-empty\\-array\\, mixed\\>, ids\\: non\\-empty\\-array\\, mixed\\>, parent_ids\\: non\\-empty\\-array\\, mixed\\>, path_strings\\: non\\-empty\\-array\\, string\\>, remote_ids\\: non\\-empty\\-array\\, mixed\\>\\}\\.$#" count: 1 path: src/lib/FieldMapper/ContentFieldMapper/ContentDocumentLocationFields.php