Skip to content

Commit

Permalink
github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos0000 committed Nov 12, 2023
1 parent 7ddafe7 commit 1ef734b
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/model-2owl-validator-refresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,30 @@ jobs:
cd model2owl/resources
ls -la
- name: commit files
id: commit
run: |
git status
git add .
if [ -z "$(git status --porcelain)" ]; then
echo "::set-output name=push::false"
else
git commit -m "Adding convention report and glossary files"
echo "::set-output name=push::true"
fi
shell: bash

- name: Push changes
if: steps.commit.outputs.push == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main

# - name: Commit and Push to destination repository
# - name: commit files
# id: commit
# run: |
# git status
#
# git add .
# git commit -m "Copy src folder from model2owl repository"
# git push origin main
# if [ -z "$(git status --porcelain)" ]; then
# echo "::set-output name=push::false"
# else
# git commit -m "Adding convention report and glossary files"
# echo "::set-output name=push::true"
# fi
# shell: bash
#
# - name: Push changes
# if: steps.commit.outputs.push == 'true'
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: main

- name: Commit and Push to destination repository
run: |
git add .
git commit -m "Copy src folder from model2owl repository"
git push -f origin main

0 comments on commit 1ef734b

Please sign in to comment.