diff --git a/.github/workflows/helm-chart-release.yaml b/.github/workflows/helm-chart-release.yaml index 529bdd3289..da5d518757 100644 --- a/.github/workflows/helm-chart-release.yaml +++ b/.github/workflows/helm-chart-release.yaml @@ -9,7 +9,19 @@ on: - 'charts/**' jobs: + + check-repository: + runs-on: ubuntu-latest + steps: + - name: Check repository + run: | + if [ "${{ github.repository }}" != "eclipse-tractusx/your-repository-name" ]; then + echo "Releases must be created on Tractus-X only." + exit 1 + fi + get-helm-charts-versions-irs: + needs: check-repository outputs: latest_version: ${{ steps.step1.outputs.latest_version }} current_version: ${{ steps.step2.outputs.current_version }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 010c312c8a..ef9fed8c2a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,7 +17,19 @@ on: type: string jobs: + + check-repository: + runs-on: ubuntu-latest + steps: + - name: Check repository + run: | + if [ "${{ github.repository }}" != "eclipse-tractusx/your-repository-name" ]; then + echo "Releases must be created on Tractus-X only." + exit 1 + fi + release: + needs: check-repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/update-docs-for-release.yml b/.github/workflows/update-docs-for-release.yml index 70fdf27f77..5a6a2c9f55 100644 --- a/.github/workflows/update-docs-for-release.yml +++ b/.github/workflows/update-docs-for-release.yml @@ -28,8 +28,20 @@ on: - 'No' default: 'No' jobs: + + check-repository: + runs-on: ubuntu-latest + steps: + - name: Check repository + run: | + if [ "${{ github.repository }}" != "eclipse-tractusx/your-repository-name" ]; then + echo "Releases must be created on Tractus-X only." + exit 1 + fi + update-docs-for-release: runs-on: ubuntu-latest + needs: check-repository outputs: previous-irs-version: ${{ steps.update-docs.outputs.previous-irs-version }}