Skip to content

Commit

Permalink
commit id fetch workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithvcoder committed Nov 5, 2024
1 parent 8206a15 commit 2f49e5a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/github-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,27 @@ jobs:
latest_commit=$(git rev-parse HEAD)
echo "::set-output name=commit_id::${{ needs.build-and-push-ecr-image.get_commit_id.outputs.commit_id }}"
EC2-runner:
runs-on: ubuntu-latest
needs: launch-runner
outputs:
commit_id: ${{ steps.get_commit_id.outputs.commit_id }}
steps:
- uses: actions/checkout@v3
- uses: iterative/setup-cml@v2

- name: Display the commit ID
run: |
echo "Latest commit ID is: ${{ needs.launch-runner.outputs.commit_id }}"
- name: Get latest commit ID
id: get_commit_id
run: |
latest_commit=$(git rev-parse HEAD)
echo "::set-output name=commit_id::${{ needs.launch-runner.get_commit_id.outputs.commit_id }}"
# - name: Deploy runner on AWS EC2
# env:
# REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
Expand Down

0 comments on commit 2f49e5a

Please sign in to comment.