Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Mar 15, 2024
1 parent 1b26a04 commit 0c5b5bf
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/actions/rebase-dependency-main-branch/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,18 @@ runs:
shell: bash
run: |
if [[ "${{ env.GH_ISSUE_MESSAGE }}" != "" ]] ; then
gh issue ${{ env.GH_ISSUE_OPERATION }} \
--repo ${{ github.repository }} \
--comment '${{ env.GH_ISSUE_MESSAGE }}' \
${{ inputs.issue-id }} \
|| gh issue comment \
--repo ${{ github.repository }} \
--body '${{ env.GH_ISSUE_MESSAGE }}' \
${{ inputs.issue-id }}
oldState=$(gh issue view ${{ inputs.issue-id }} --json state -q .state -R ${{ github.repository }})
if [[ "$oldState" == "open" ]] ; then
gh issue comment \
--repo ${{ github.repository }} \
--body '${{ env.GH_ISSUE_MESSAGE }}' \
${{ inputs.issue-id }}
else
gh issue reopen \
--repo ${{ github.repository }} \
--comment '${{ env.GH_ISSUE_MESSAGE }}' \
${{ inputs.issue-id }}
fi
fi
env:
GH_TOKEN: ${{ inputs.token }}
Expand Down

0 comments on commit 0c5b5bf

Please sign in to comment.