Skip to content

Commit

Permalink
Run JBANG using Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgitario committed Sep 5, 2022
1 parent 8254957 commit dfe2fd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/manual_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Setup jbang
run: curl -Ls https://sh.jbang.dev | bash -s - app setup
- name: Maven release ${{steps.metadata.outputs.current-version}}
run: |
./mvnw clean install -DskipTests
Expand All @@ -52,7 +50,7 @@ jobs:
# update examples and tests
./mvnw versions:set -DnewVersion=${{steps.metadata.outputs.next-version}} -Pwith-examples,with-tests -DgenerateBackupPoms=false -DoldVersion=* -DgroupId=* -DartifactId=*
# update readme.md
./scripts/ChangeVersion.java readme.md io.dekorate ${{steps.metadata.outputs.next-version}} > readme.md.versionChanged
docker run -v `pwd`:/ws --workdir=/ws -ti quay.io/jbangdev/jbang-action ./scripts/ChangeVersion.java readme.md io.dekorate 0.0.1 | tail -n +3 > readme.md.versionChanged
mv readme.md.versionChanged readme.md
git add readme.md
# commit changes
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ jobs:
if: ${{github.event.pull_request.merged == true}}

steps:
- uses: actions/checkout@v2
- uses: radcortez/project-metadata-action@master
name: Retrieve project metadata
id: metadata
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'

- uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v2
with:
Expand Down Expand Up @@ -54,7 +53,7 @@ jobs:
# update examples and tests
./mvnw versions:set -DnewVersion=${{steps.metadata.outputs.next-version}} -Pwith-examples,with-tests -DgenerateBackupPoms=false -DoldVersion=* -DgroupId=* -DartifactId=*
# update readme.md
./scripts/ChangeVersion.java readme.md io.dekorate ${{steps.metadata.outputs.next-version}} > readme.md.versionChanged
docker run -v `pwd`:/ws --workdir=/ws -ti quay.io/jbangdev/jbang-action ./scripts/ChangeVersion.java readme.md io.dekorate 0.0.1 | tail -n +3 > readme.md.versionChanged
mv readme.md.versionChanged readme.md
git add readme.md
# commit changes
Expand Down

0 comments on commit dfe2fd0

Please sign in to comment.