Giter Site home page Giter Site logo

Comments (3)

chrissng avatar chrissng commented on August 25, 2024 1

In the meanwhile one could add this step in GH action for pull request (e.g. linting your chart):

      - name: Check for gh-pages branch
        run: |
          git ls-remote --exit-code --heads origin gh-pages

from chart-releaser-action.

invidian avatar invidian commented on August 25, 2024

In the meanwhile one could add this step in GH action for pull request (e.g. linting your chart):

I'm not sure how this helps, it just shifts the failure from later stage to early. It would be nice to have documented how to create this branch.

from chart-releaser-action.

thetredev avatar thetredev commented on August 25, 2024

My workaround:

- name: Configure Git
  run: |
    git config user.name "$GITHUB_ACTOR"
    git config user.email "[email protected]"

- name: Create gh-pages branch if it doesn't exist
  continue-on-error: true
  run: |
    git checkout -b gh-pages || exit 1
    git rebase main
    git push origin gh-pages

    git checkout main

- name: Run chart-releaser
  uses: helm/[email protected]
  env:
    CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}

But I think this is very ugly... I'll probably do my own thing instead. This action is not what I expected tbh..

Edit: To my surprise it works quite well once you get the hang of it.
Edit 2: Updated the code, because the old solution overwrote the gh-pages branch.

from chart-releaser-action.

Related Issues (20)

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.