Skip to content

Assignee policy

Assignee policy #47

Workflow file for this run

#
# Copyright (c) 2025 Cofinity-X
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
---
name: "Release"
on:
pull_request:
branches:
- main
types:
- closed
workflow_call:
jobs:
# Gate
validation:
name: "Check if repository is not fork AND head is release OR base is bugfix"
runs-on: ubuntu-latest
if: ${{ github.repository == 'eclipse-edc/MinimumViableDataspace' && (startsWith(github.ref_name, 'bugfix/') || startsWith(github.event.pull_request.head.ref, 'release/')) }}
outputs:
RELEASE_VERSION: ${{ steps.release-version.outputs.RELEASE_VERSION }}
steps:
- uses: actions/checkout@v5
- name: Output release version
id: release-version
run: |
VERSION=$(grep "version" gradle.properties | awk -F= '{print $2}')
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_OUTPUT
# Release: GitHub tag & release; Starts a new development cycle if latest release;
github-release:
name: Publish new github release
needs: [ validation ]
runs-on: ubuntu-latest
permissions:
contents: write
if: needs.validation.outputs.RELEASE_VERSION
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/push-tag
with:
version: ${{ needs.validation.outputs.RELEASE_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
is_latest: ${{ github.ref_name == 'main' }}