Giter Site home page Giter Site logo

jbang-action's People

Contributors

beiertu-mms avatar fbricon avatar gastaldi avatar jreleaserbot avatar maxandersen avatar michael-simons avatar renovate-bot avatar tadayosi avatar tarilabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jbang-action's Issues

Run locally with 'act' fails

Have a very basic workflow starting a JBang script but i cannot run it locally:

git clone [email protected]:grumpyf0x48/jbang-catalog.git
cd jbang-catalog
act

Fails with:

[ci-build/build]   🐳  docker run image=ghcr.io/jbangdev/jbang-action:0.85.1 platform= entrypoint=[] cmd=[]
| jbang Catalog.java
| /usr/bin/entrypoint: line 21: exec: jbang: not found
[ci-build/build]   ❌  Failure - compile scripts
Error: exit with `FAILURE`: 127

Add a license

Hi!

It seems that this repository doesn't have a license.

URL Source protection introduced in 0.28.0 breaks Github Action

Having the following GH Action step:

      - name: Index Catalog
        uses: jbangdev/[email protected]
        with:
          script: https://github.com/quarkusio/quarkus-registry-descriptor/blob/master/index.java
          args: --trust=https://github.com/quarkusio/quarkus-registry-descriptor/ . ./app/registry.json

Gives the following output:

Run jbangdev/[email protected]
/usr/bin/docker run --name d33d5e89bf3b5445b3a1f5add313179397_c2465f --label 3888d3 --workdir /github/workspace --rm -e INPUT_SCRIPT -e INPUT_ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/quarkus-extension-catalog/quarkus-extension-catalog":"/github/workspace" 3888d3:3d5e89bf3b5445b3a1f5add313179397  "https://github.com/quarkusio/quarkus-registry-descriptor/blob/master/index.java" "--trust=https://github.com/quarkusio/quarkus-registry-descriptor/ . ./app/registry.json"
[jbang] https://github.com/quarkusio/quarkus-registry-descriptor/blob/master/index.java is not from a trusted source thus aborting.
If you trust the url to be safe to run are here a few suggestions:
Limited trust:
    jbang --trust=https://github.com/quarkusio/quarkus-registry-descriptor/
Trust all subdomains:
    jbang --trust=*.github.com
Trust all sources (WARNING! disables url protection):
    jbang --trust="*"

For more control edit ~/.jbang/trusted-sources.json

[jbang] Run with --verbose for more details

See https://github.com/quarkusio/quarkus-extension-catalog/runs/743885705?check_suite_focus=true for more details (PS: I also noted that the step didn't fail the workflow, maybe open a new ticket for that?)

[Bug] Image version 0.116.0 is not available

The build for the version 0.116.0 has failed and therefore, the image hasn't been pushed.
But some metadata has already been released and so they are picked up by dependabot.
And it creates pull request, which will lead to error.

Support Java 17 LTE

We should probably have a version of the action that supports Java 17 now that it's the latest long term support release.

This probably means coming up with a new tagging scheme, something like jbangver-javaver, eg 0.83.0-11, 0.83.1-17 and a tag 0.83.1 that refers to one of those, for now it should probably remain 11.

Make ghcr.io/jbangdev/jbang-action:0.116.0 available

At https://github.com/jbangdev/jbang-action/releases/tag/v0.116.0, there is a tag. This causes dependabot filing a pull request. Example: gi-ev/LNI#167

I get following output

  /usr/bin/docker pull ghcr.io/jbangdev/jbang-action:0.116.0
  Error response from daemon: manifest unknown

I checked https://github.com/jbangdev/jbang-action/releases, but there is no 0.116.0 release.

At https://github.com/orgs/jbangdev/packages/container/package/jbang-action, there is no package for 0.116.0.

Would it be possible to publish the release 0.116.0 also as package?

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.


  • Check this box to trigger a request for Renovate to run again on this repository

Aliases doesn't work with jbangdev/[email protected]

I have the following configuration:

      - name: Index Catalog
        uses: jbangdev/[email protected]
        with:
          script: indexcatalog@quarkusio
          args: . ./app/registry.json

This is the error I get when Github runs it:

Run jbangdev/[email protected]
  with:
    script: indexcatalog@quarkusio
    args: . ./app/registry.json
mkdir: cannot create directory β€˜/github/home/.jbang’: Permission denied
[jbang] java.lang.RuntimeException: Invalid alias name ''
[jbang] Run with --verbose for more details

Example in README indented incorrectly

It's a little hard to read this way becuase the indenting is not correct. I think this is the correct one:

on: [push]

jobs:
  jbang:
    runs-on: ubuntu-latest
    name: A job to run jbang
    steps:
    - name: checkout
      uses: actions/checkout@v1
    - uses: actions/cache@v1
      with:
        path: /root/.jbang
        key: ${{ runner.os }}-jbang-${{ hashFiles('*.java') }}
        restore-keys: |
          ${{ runner.os }}-jbang-
    - name: jbang
      uses: maxandersen/[email protected]
      with:
        script: createissue.java
        args: "my world"
      env:
        JBANG_REPO: /root/.jbang/repository
        GITHUB_TOKEN: ${{ secrets.ISSUE_GITHUB_TOKEN }}

You probably should stop using TABs in files that indent-sensitive ;-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.