Skip to content

Commit

Permalink
Merge pull request #212 from gsmet/setup-jbang
Browse files Browse the repository at this point in the history
Use setup-jbang action to set up JBang
  • Loading branch information
gsmet authored Nov 30, 2023
2 parents 6b01781 + 78d5ad0 commit d4aed7a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 22 deletions.
10 changes: 6 additions & 4 deletions docs/modules/ROOT/pages/create-github-action.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,15 @@ runs:
using: "composite" <5>
steps:
- name: Set up JDK 21 <6>
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- run: curl -Ls https://sh.jbang.dev | bash -s - app setup <7>
shell: bash
- run: ~/.jbang/bin/jbang --repos 'github=https://maven.pkg.github.com/my/action-github-repository/' --repos 'mavencentral' org.acme:my-github-action:999-SNAPSHOT <8>
- name: Set up JBang
uses: jbangdev/setup-jbang@main <7>
- name: Run the action
id: action
run: jbang --repos 'github=https://maven.pkg.github.com/my/action-github-repository/' --repos 'mavencentral' org.acme:my-github-action:999-SNAPSHOT <8>
shell: bash
env:
JSON_INPUTS: ${{ toJSON(inputs) }} <9>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ runs:
using: "composite"
steps:
- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- id: install-jbang
run: curl -Ls https://sh.jbang.dev | bash -s - app setup
shell: bash
- id: action
run: ~/.jbang/bin/jbang --repos 'github=https://maven.pkg.github.com/your-org/your-repository/' --repos 'mavencentral' org.test:test-codestart:1.0.0-codestart
- name: Set up JBang
uses: jbangdev/setup-jbang@main
- name: Run the action
id: action
run: jbang --repos 'github=https://maven.pkg.github.com/your-org/your-repository/' --repos 'mavencentral' org.test:test-codestart:1.0.0-codestart
shell: bash
env:
JSON_INPUTS: ${{ toJSON(inputs) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ runs:
using: "composite"
steps:
- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- id: install-jbang
run: curl -Ls https://sh.jbang.dev | bash -s - app setup
shell: bash
- id: action
run: ~/.jbang/bin/jbang --repos 'github=https://maven.pkg.github.com/your-org/your-repository/' --repos 'mavencentral' org.test:test-codestart:1.0.0-codestart
- name: Set up JBang
uses: jbangdev/setup-jbang@main
- name: Run the action
id: action
run: jbang --repos 'github=https://maven.pkg.github.com/your-org/your-repository/' --repos 'mavencentral' org.test:test-codestart:1.0.0-codestart
shell: bash
env:
JSON_INPUTS: ${{ toJSON(inputs) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ runs:
using: "composite"
steps:
- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- id: install-jbang
run: curl -Ls https://sh.jbang.dev | bash -s - app setup
shell: bash
- id: action
run: ~/.jbang/bin/jbang --repos 'github=https://maven.pkg.github.com/{github-repository}/' --repos 'mavencentral' {project.group-id}:{project.artifact-id}:{project.version}
- name: Set up JBang
uses: jbangdev/setup-jbang@main
- name: Run the action
id: action
run: jbang --repos 'github=https://maven.pkg.github.com/{github-repository}/' --repos 'mavencentral' {project.group-id}:{project.artifact-id}:{project.version}
shell: bash
env:
JSON_INPUTS: ${{ toJSON(inputs) }}
Expand Down

0 comments on commit d4aed7a

Please sign in to comment.