Skip to content

Commit

Permalink
Remove extra echo outputs in formatting-bot (FreeRTOS#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
archigup authored Sep 19, 2023
1 parent 5f0b1e7 commit 4dd635c
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions formatting-bot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ inputs:
runs:
using: "composite"
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
shell: bash
run: echo "$GITHUB_CONTEXT"

- env:
stepName: Install Utils
shell: bash
Expand All @@ -37,18 +31,17 @@ runs:
echo -e "::endgroup::"
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }}"
- name: Get Pull Request Info
- env:
stepName: Get Pull Request Info
shell: bash
id: pr-info
run: |
echo ${{ github.event.issue.pull_request.url }}
echo "RemoteRepo=$(curl -H "Accept: application/vnd.github.sailor-v-preview+json" --url ${{ github.event.issue.pull_request.url }} | jq '.head.repo.full_name' | sed 's/\"//g')" >> $GITHUB_OUTPUT
echo "branchName=$(curl -H "Accept: application/vnd.github.sailor-v-preview+json" --url ${{ github.event.issue.pull_request.url }} | jq '.head.ref' | sed 's/\"//g')" >> $GITHUB_OUTPUT
- name: Echo Upstream Repo:Branch
shell: bash
run: |
echo ${{ steps.pr-info.outputs.RemoteRepo }}:${{ steps.pr-info.outputs.branchName }}
# ${{ env.stepName }}
echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
echo "RemoteRepo=$(curl -H "Accept: application/vnd.github.sailor-v-preview+json" --url "${{ github.event.issue.pull_request.url }}" | jq '.head.repo.full_name' | sed 's/\"//g')" >> $GITHUB_OUTPUT
echo "branchName=$(curl -H "Accept: application/vnd.github.sailor-v-preview+json" --url "${{ github.event.issue.pull_request.url }}" | jq '.head.ref' | sed 's/\"//g')" >> $GITHUB_OUTPUT
echo -e "::endgroup::"
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }}"
- name: Checkout upstream repo
uses: actions/checkout@v3
Expand Down

0 comments on commit 4dd635c

Please sign in to comment.