Skip to content

Commit

Permalink
build: replace has-changes action with just a command
Browse files Browse the repository at this point in the history
  • Loading branch information
enapupe committed Dec 10, 2023
1 parent 05d550e commit df06c8d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
- uses: imranismail/setup-kustomize@v2
- run: |
kustomize edit set image vnguyen/openbeta-graph-api:sha-${GITHUB_SHA}
- name: Check if there are changes
id: changes
uses: UnicornGlobal/[email protected]
- name: Check if there is any change
id: get_changes
run: echo "changed=$(git status --porcelain | wc -l)" >> $GITHUB_OUTPUT
- name: Push if tag has changes
if: steps.changes.outputs.changed == 1
if: steps.get_changes.outputs.changed != 0
run: |
cd api-server-deployment/stage
git config user.name github-actions
Expand All @@ -55,11 +55,11 @@ jobs:
- uses: imranismail/setup-kustomize@v2
- run: |
kustomize edit set image vnguyen/openbeta-graph-api:${GITHUB_REF}
- name: Check if there are changes
id: changes
uses: UnicornGlobal/[email protected]
- name: Check if there is any change
id: get_changes
run: echo "changed=$(git status --porcelain | wc -l)" >> $GITHUB_OUTPUT
- name: Push if tag has changes
if: steps.changes.outputs.changed == 1
if: steps.get_changes.outputs.changed != 0
run: |
git config user.name github-actions
git config user.email [email protected]
Expand Down

0 comments on commit df06c8d

Please sign in to comment.