Skip to content

Commit

Permalink
Remove tree_id parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
amandahla committed Nov 29, 2023
1 parent efb823f commit 9b705a0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/publish_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,14 @@ jobs:
if: ${{ github.event_name == 'push' }}
shell: bash
run: |
# Get commit info
TREE_SHA=$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository }}/commits/${GITHUB_SHA} \
--jq '.commit.tree.sha')
# Get workflow from this specific SHA
RUN_ID=$(gh api \
--method GET \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository }}/actions/runs \
-f path=.github/workflows/integration_test.yaml \
-f tree_id=$TREE_SHA \
-f head_sha=${GITHUB_SHA} \
-f status=completed \
-f event=pull_request \
--jq '[.workflow_runs[] | select(.path == ".github/workflows/integration_test.yaml")] | max_by(.updated_at) | .id')
Expand Down

0 comments on commit 9b705a0

Please sign in to comment.