Skip to content

Commit

Permalink
fixing several wrong varible names
Browse files Browse the repository at this point in the history
  • Loading branch information
j-i-l committed May 18, 2024
1 parent 924f51e commit 9d419ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish_version_enforce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ jobs:
fetch-depth: 0 # NOTE: This might be needed to assert that we get the full history
# for the changelog.
- name: Attempt to create label ${{ env.LABEL_PUBLISHED }}
if: ${{ needs.associated_pr.outputs.pr }}
if: ${{ needs.associated_pr.outputs.event }}
id: present_label
run: |
gh label create ${{ env.LABEL_PUBLISHED }} --repo ${{ env.OWNER }}/${{ env.REPO }}
continue-on-error: true # make sure the next steps run also on failure
- name: Check if the pull request is labeled with ${{ env.LABEL_PUBLISHED }} # 2
id: published
run: |
if $( gh pr view ${{ needs.associated_pr.outputs.pr }} --repo ${{ env.OWNER }}/${{ env.REPO }} --json "labels" --jq ".[].[].name" | grep --quiet ${{ env.LABEL_PUBLISHED }}); then
if $( gh pr view ${{ needs.associated_pr.outputs.event }} --repo ${{ env.OWNER }}/${{ env.REPO }} --json "labels" --jq ".[].[].name" | grep --quiet ${{ env.LABEL_PUBLISHED }}); then
echo "LABELED=true" >> $GITHUB_OUTPUT
else
echo "LABELED=false" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
if: ${{ (steps.published.outputs.labeled == 'false') }}
# this gets the first the changes to the previous clean tag (including manual edits)
run: |
awk '/<a name="${{ steps.release_version.outputs.version }}".*/{a=1};a;/<a name="${{ needs.associated_pr.outputs.previous_version }}"*/{exit}' NEWS.md | head -n -1 >> body.md
awk '/<a name="${{ steps.release_version.outputs.version }}".*/{a=1};a;/<a name="${{ needs.release_version.outputs.previous_version }}"*/{exit}' NEWS.md | head -n -1 >> body.md
- name: Create tag and release # 2
if: ${{ (steps.published.outputs.labeled == 'false') }}
run: |
Expand All @@ -180,7 +180,7 @@ jobs:
- name: Adding the label ${{ env.LABEL_PUBLISHED }} # 2
if: ${{ (steps.published.outputs.labeled == 'false') }}
run: |
gh pr edit ${{ needs.associated_pr.outputs.pr }} --add-label ${{ env.LABEL_PUBLISHED }} --repo ${{ env.OWNER }}/${{ env.REPO }}
gh pr edit ${{ needs.associated_pr.outputs.event }} --add-label ${{ env.LABEL_PUBLISHED }} --repo ${{ env.OWNER }}/${{ env.REPO }}
shell: bash
- name: Get the built package
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 9d419ba

Please sign in to comment.