Skip to content

Commit

Permalink
step to commit spec.json
Browse files Browse the repository at this point in the history
  • Loading branch information
luiztauffer committed Dec 21, 2023
1 parent cdcc883 commit 8ad44bb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_and_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,16 @@ jobs:
dendro make-app-spec-file --app-dir . --spec-output-file spec.json
docker build -t ghcr.io/catalystneuro/dendro_${{ matrix.app_dir }}:latest .
docker push ghcr.io/catalystneuro/dendro_${{ matrix.app_dir }}:latest
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
GIT_STATUS=$(git status -s)
[[ ! -z "$GIT_STATUS" ]] && git add ${{ matrix.app_dir }}/spec.json && git commit -m "update spec.json" -a || echo "No changes to commit"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit 8ad44bb

Please sign in to comment.