Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithvcoder committed Nov 4, 2024
1 parent b9a1bfe commit 780b6de
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ec2-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@ jobs:
run: |
ls -l ./
- name: Get latest commit ID from the repository
id: get_commit_id
env:
REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
repo="ajithvcoder/emlo4-session-08-ajithvcoder"
latest_commit=$(curl -s -H "Authorization: token $REPO_TOKEN" \
"https://api.github.com/repos/$repo/commits?per_page=1" | \
jq -r '.[0].sha')
echo "COMMIT_ID=$latest_commit" >> $GITHUB_ENV
- name: List files in folder
run: |
ls -l ./model_storage
Expand Down

0 comments on commit 780b6de

Please sign in to comment.