Skip to content

Commit

Permalink
Merge pull request #17 from benhpoh/feat/update-workflow
Browse files Browse the repository at this point in the history
Feat/update workflow
  • Loading branch information
benhpoh authored Jan 21, 2022
2 parents 03d1090 + 45529ff commit 9f1065c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/helm-chart-releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@ on:
push:
branches:
- deploy
# paths:
# - 'chart/**'
paths:
- 'chart/**'

jobs:
# release:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

# - name: Configure Git
# run: |
# git config user.name "$GITHUB_ACTOR"
# git config user.email "[email protected]"
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
# - name: Install Helm
# uses: azure/setup-helm@v1
# with:
# version: v3.4.0
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0

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

trigger-workflow:
runs-on: ubuntu-latest
Expand All @@ -42,11 +42,11 @@ jobs:

steps:
- run: |
echo https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/actions/workflows/$WORKFLOW_FILENAME/dispatches
curl \
-v \
--request POST \
--url https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/actions/workflows/$WORKFLOW_FILENAME/dispatches \
--header "authorization: Bearer ${{ secrets.HELM_INDEXER_TOKEN }}" \
--header "Accept: application/vnd.github.v3+json" \
--data '{"ref":"deploy"}' \
--data '{"ref":"main"}' \
--fail
2 changes: 1 addition & 1 deletion chart/ms-compitem-crud/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ name: ms-compitem-crud
description: Dependency Packages
type: application
icon: https://ortelius.github.io/ortelius-charts/logo.png
version: "10.0.0-build.51"
version: "10.0.0-build.52"

0 comments on commit 9f1065c

Please sign in to comment.