Giter Club home page Giter Club logo

action-turbo-changed's People

Contributors

alexbchr avatar dependabot[bot] 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

Watchers

 avatar  avatar

action-turbo-changed's Issues

From not working with branch name

๐Ÿ› Bug Description / How to Reproduce

Hi I'm getting the below error trying to supply from: main to the action:
run failed: failed to resolve packages to run: commit main does not exist

โœ… Expected behavior

Per the documentation, I should be able to swap HEAD^1 with main and it should just work.

๐Ÿ“ฆ Packages Concerned

๐Ÿ—’๏ธ Details

This is the (reusable) workflow:

on:
  workflow_call:
    inputs:
      workspace:
        required: true
        type: string

jobs:
  check_changes:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v3
        with:
          fetch-depth: 0 # Necessary so we have commit history to compare to

      - name: Did ${{ inputs.workspace }} change?
        id: changed
        uses: Trampoline-CX/action-turbo-changed@v1
        with:
          workspace: ${{ inputs.workspace }}
          from: main

BUG: Github Action Failing on Turborepo v 1.12.0

๐Ÿ› Bug Description / How to Reproduce

Currenty running the action like this:

    - name: App changed in last commit?
      id: changedAction
      uses: Trampoline-CX/action-turbo-changed@v1
      with:
        workspace: ${{ inputs.app-name }}
        from: HEAD^1

Error from GH Actions: SyntaxError: Unexpected token A in JSON at position 1

Issue likely lies in the turborepo output that now contains the following text followed by the json

Attention:
Turborepo now collects completely anonymous telemetry regarding usage.
This information is used to shape the Turborepo roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://turbo.build/repo/docs/telemetry

{... start of json}

Probably requires a change in main.ts

debug(Output from Turborepo: ${json})

const parsedOutput = JSON.parse(json)
const changed = parsedOutput.packages.includes(workspace)

โœ… Expected behavior

Gh action to run successfully

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.