Skip to content

Commit

Permalink
fix: didn't set up outputs correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed May 14, 2024
1 parent 4acd740 commit a9ea776
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/dependency-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
update:
runs-on: ubuntu-latest
outputs:
sha: ${{ steps.cpr.outputs.pull-request-head-sha }}
steps:
- uses: actions/checkout@v4
- name: Create .env file
Expand Down Expand Up @@ -60,21 +62,14 @@ jobs:
title: ${{ env.PR_TITLE }}
body-path: /tmp/pr_body.md
assignees: niquerio, erinesullivan
- name: Get PR outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
echo "SHA=${{ steps.cpr.outputs.pull-request-head-sha }}" >> $GITHUB_OUTPUT

build-unstable:
needs: update
name: Build unstable ${{ needs.update.outputs.SHA }}
name: Build unstable ${{ needs.update.outputs.sha }}
uses: mlibrary/platform-engineering-workflows/.github/workflows/build-unstable.yml@v1
with:
image_name: ${{ vars.IMAGE_NAME }}
tag: ${{ needs.update.outputs.SHA }}
tag: ${{ needs.update.outputs.sha}}
dockerfile: Dockerfile
secrets: inherit

Expand Down

0 comments on commit a9ea776

Please sign in to comment.