Skip to content

Commit

Permalink
chore(build):[eclipse-tractusx#222] check that releases are created o…
Browse files Browse the repository at this point in the history
…n Tractus-X only
  • Loading branch information
dsmf committed Jun 26, 2024
1 parent 19fc5a3 commit ba499ee
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/helm-chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/update-docs-for-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit ba499ee

Please sign in to comment.