Skip to content

Commit

Permalink
run tests on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
luiztauffer committed Nov 9, 2023
1 parent c4b0b33 commit d11515e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/validate-and-organize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,35 @@ jobs:
pytest
- name: Publish images
if: env.GITHUB_REF_NAME == 'main'
env:
GHCR_USERNAME: ${{ github.actor }}
GITHUB_REF_NAME: ${{ github.ref_name }}
run: domino piece publish-images --registry-token ${{ secrets.GITHUB_TOKEN }}

- name: Commit files
if: env.GITHUB_REF_NAME == 'main'
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
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 .domino/* && git commit -m "auto-organize" -a || echo "No changes to commit"
- name: Push changes
if: env.GITHUB_REF_NAME == 'main'
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

- name: Create Release
if: env.GITHUB_REF_NAME == 'main'
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: domino piece release

0 comments on commit d11515e

Please sign in to comment.