Skip to content

Commit

Permalink
Hopefully last of the shellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
desi committed Mar 20, 2024
1 parent 90facd8 commit b41408e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/crowdin-branch-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: |
echo "running on branch ${GITHUB_REF##*/}"
echo "other version: ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_OUTPUT"
id: extract_current_branch

- name: Get PR with Label for this branch
Expand All @@ -27,7 +27,7 @@ jobs:
API_URL="https://api.github.com/repos/Metamask/crowdin-sandbox/pulls?head:$CURRENT_BRANCH&state=open&per_page=100"
# Fetch the list of open pull requests with the specified label using curl
PRS="$(curl -sS --header "Authorization: Bearer $GITHUB_TOKEN" "$API_URL")"
PR="$(echo "$PRS" | jq -r '.[] | select(.labels[].name == "ready-for-translation") | .number | @json')"
BRANCHES=$(echo "$PRS" | jq -r '[.[] | select(.labels[].name == "'"$LABEL"'") | .head.ref] | @json')
echo "Found PR: $PR"
echo "pr=$PR" >> "$GITHUB_OUTPUT"
env:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
ref: ${{ needs.prestep.outputs.branch }}

- name: Delete branch within Crowdin
if: ${{ needs.prestep.outputs.branch }} != 'main'
if: needs.prestep.outputs.branch != 'main'
uses: crowdin/github-action@c953b17499daa6be3e5afbf7a63616fb02d8b18d
with:
command: branch delete ${{ needs.prestep.outputs.branch }}
Expand Down

0 comments on commit b41408e

Please sign in to comment.