Skip to content

Commit

Permalink
Adjust generator workflow to our fork needs
Browse files Browse the repository at this point in the history
  • Loading branch information
michpohl committed Oct 31, 2024
1 parent 58ba6b2 commit 878be93
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/openapi-generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,20 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
- name: Run maven
run: ./mvnw clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
run: ./mvnw clean package -DskipTests
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- run: ls -la modules/openapi-generator-cli/target

- name: Extract current branch name
id: branch-name
run: |
BRANCH_NAME=${{ github.ref }}
echo "Full ref: $BRANCH_NAME"
# Strip the refs/heads/ part to get the branch name
BRANCH_NAME=${BRANCH_NAME#refs/heads/}
echo "::set-output name=branch_name::$BRANCH_NAME"
- name: Generate tag string
id: generate_snapshot_string
run: |
Expand All @@ -70,7 +79,7 @@ jobs:
asset_name: openapi-generator-cli.jar
tag: ${{ steps.generate_snapshot_string.outputs.snapshot_string }}
overwrite: true
target_commit: ""
target_commit: ${{ steps.branch-name.outputs.branch_name }}
body: "This is the latest snapshot release of our openapi-generator fork"
# test:
# name: Unit tests
Expand Down

0 comments on commit 878be93

Please sign in to comment.