Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worflow is not triggered by new tag #188

Open
craftcodedev opened this issue Apr 19, 2024 · 0 comments
Open

Worflow is not triggered by new tag #188

craftcodedev opened this issue Apr 19, 2024 · 0 comments

Comments

@craftcodedev
Copy link

craftcodedev commented Apr 19, 2024

Hello,

I have an github workflow to be trigger when a new tag is created by antother workflow using the chart-releaser-action. You can see the following code:

Workflow using chart-releaser-action

`name: Release Charts

on:
  push:
    branches:
      - master

jobs:
  release:
    permissions:
      contents: write
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Configure Git
        run: |
          git config user.name "$GITHUB_ACTOR"
          git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

      - name: Install Helm
        uses: azure/setup-helm@v3

      - name: Run chart-releaser
        uses: helm/chart-releaser-action@v1.6.0
        with:
          charts_dir: apps
          config: "./.github/configs/cr.yaml"
        env:
          CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"`

Workflow to be trigger when a new tag is created:

`name: Build and push helm chart

on:
  push:
    tags:
      - '**'

jobs:
  build_and_push:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3`

The new tag is created by chart-releaser-action but the Build and push helm chart workflow is not being trigger. I tried to create and push manually a tag and the workflow is being trigger. So I think the problem is the way chart-releaser-action is creating the tag. Maybe it is related to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant