Skip to content

Commit

Permalink
build: make trigger snapshot be manually triggerable (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt authored Jan 18, 2024
1 parent ab67e40 commit 53c4d46
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 94 deletions.
54 changes: 0 additions & 54 deletions .github/actions/bump-version/action.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/actions/run-tests/action.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/actions/setup-build/action.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ on:
description: "Branch on which the version bump is to be done."
required: false


jobs:
Bump-Version:
name: 'Update snapshot version'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bump-version
- uses: eclipse-edc/.github/.github/actions/bump-version@main
name: Bump version
with:
target_branch: ${{ inputs.target_branch }}
target_branch: ${{ inputs.target_branch }}
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build
- uses: eclipse-edc/.github/.github/actions/setup-build@main

- name: Run Checkstyle
run: ./gradlew checkstyleMain checkstyleTest
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build
- uses: eclipse-edc/.github/.github/actions/setup-build@main

- name: Run Javadoc
run: ./gradlew javadoc
Expand All @@ -45,10 +45,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build
- uses: eclipse-edc/.github/.github/actions/setup-build@main

- name: Run unit tests
uses: ./.github/actions/run-tests
uses: eclipse-edc/.github/.github/actions/run-tests@main
with:
command: ./gradlew test

Expand All @@ -57,4 +57,4 @@ jobs:
needs: [ Checkstyle, Javadoc, Unit-Tests ]
if: github.repository == 'eclipse-edc/Runtime-Metamodel' && github.event_name == 'push' && github.ref_name == 'main'
uses: eclipse-edc/.github/.github/workflows/publish-snapshot.yml@main
secrets: inherit
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/release-rm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bump-version
- uses: eclipse-edc/.github/.github/actions/bump-version@main
with:
target_branch: "main"
base_version: ${{ needs.Prepare-Release.outputs.edc-version }}
base_version: ${{ needs.Prepare-Release.outputs.edc-version }}
1 change: 1 addition & 0 deletions .github/workflows/trigger_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
Publish-Snapshot:
Expand Down

0 comments on commit 53c4d46

Please sign in to comment.