Skip to content

Commit

Permalink
Merge pull request #510 from kosenda/feature/use-circleci5
Browse files Browse the repository at this point in the history
[CI] use circleci 5
  • Loading branch information
kosenda authored Mar 20, 2024
2 parents 136b497 + 916a69d commit 9610b95
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/CommentScreenshotDiff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ jobs:
git fetch origin companion_${{ inputs.pr_branch_name }} &&
echo true || echo false
) >> $GITHUB_OUTPUT
if [is_exist == 'true']; then
echo "companion_branch_name=companion_${{ inputs.pr_branch_name }}" >> $GITHUB_OUTPUT
fi
- name: Checkout screenshots branch
- name: Save companion branch name
id: save-companion-branch-name
run: echo "name=companion_${{ inputs.pr_branch_name }}" >> $GITHUB_OUTPUT

- name: Checkout companion branch
if: steps.check-exist-companion.outputs.is_exist == 'true'
uses: actions/checkout@v4
with:
ref: ${{ steps.check-exist-companion.outputs.companion_branch_name }}
ref: ${{ steps.save-companion-branch-name.outputs.name }}

- name: Create comments
if: steps.check-exist-companion.outputs.is_exist == 'true'
Expand All @@ -59,7 +60,7 @@ jobs:
for file in $files; do
fileName=$(basename "$file" | sed -r 's/(.{20})/\1<br>/g')
echo "| [$fileName](https://github.com/${{ github.repository }}/blob/${{ steps.check-exist-companion.outputs.companion_branch_name }}/$file) | ![](https://github.com/${{ github.repository }}/blob/${{ steps.check-exist-companion.outputs.companion_branch_name }}/$file?raw=true) |" >> "$GITHUB_OUTPUT"
echo "| [$fileName](https://github.com/${{ github.repository }}/blob/${{ steps.save-companion-branch-name.outputs.name }}/$file) | ![](https://github.com/${{ github.repository }}/blob/${{ steps.save-companion-branch-name.outputs.name }}/$file?raw=true) |" >> "$GITHUB_OUTPUT"
done
echo "${delimiter}" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 9610b95

Please sign in to comment.