Skip to content

ci: diffをコメント #28

ci: diffをコメント

ci: diffをコメント #28

Workflow file for this run

name: diff
on: pull_request
jobs:
diff-argocd:
runs-on: ubuntu-latest
env:
NAME: argocd
steps:
- uses: actions/checkout@v3
- uses: aquaproj/[email protected]
with:
aqua_version: v2.9.0
- run: |
helmfile -f helmfile.yaml template --selector name=$NAME > /tmp/pr.yaml
- uses: actions/checkout@v3
with:
ref: main
- run: |
helmfile -f helmfile.yaml template --selector name=$NAME > /tmp/main.yaml
- run: |
diff /tmp/main.yaml /tmp/pr.yaml --color > diff.yaml
- run: |
NUMBER=$(echo $GITHUB_REF | sed -e 's/[^0-9]//g')
gh pr comment $NUMBER --body-file diff.yaml
env:
GH_TOKEN: ${{ github.token }}