Skip to content

Commit

Permalink
Updated workflow to commit file
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Feb 23, 2024
1 parent 57ef0f2 commit d46af09
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/scenepro-entities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,31 @@ jobs:
--configurations config.json \
-f json >> scenepro-entities.ttl
- name: Commit changes to GitHub
id: step-6
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: scenepro-entities
path: ./scenepro-entities.ttl
retention-days: 1

commit-file-to-github:
needs: transform-scenepro-entities
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: scenepro-entities
path: ./scenepro-entities

- name: Commit file to GitHub
run: |
git pull
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add scenepro-entities.ttl
git commit -m "Add ScenePro entities TTL file"
git commit -m "Push ScenePro entities TTL file"
git push

0 comments on commit d46af09

Please sign in to comment.