Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 8f9333a

Browse files
authored
Update size-label.yml
1 parent 16ecdc2 commit 8f9333a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/size-label.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,34 @@ jobs:
2525
echo "No previous commits"
2626
size=0
2727
fi
28-
echo "::set-env name=SIZE::$size"
28+
echo "SIZE=$size" >> $GITHUB_ENV
2929
- name: Add label
3030
run: |
31-
if [ ${{ env.size }} -gt 100 ]; then
31+
if [ ${{ env.SIZE }} -gt 100 ]; then
3232
echo "Adding size: XXL"
3333
curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
3434
-H "Accept: application/vnd.github.v3+json" \
3535
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
3636
-d '["size: XXL"]'
37-
elif [ ${{ env.size }} -gt 50 ]; then
37+
elif [ ${{ env.SIZE }} -gt 50 ]; then
3838
echo "Adding size: XL"
3939
curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
4040
-H "Accept: application/vnd.github.v3+json" \
4141
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
4242
-d '["size: XL"]'
43-
elif [ ${{ env.size }} -gt 30 ]; then
43+
elif [ ${{ env.SIZE }} -gt 30 ]; then
4444
echo "Adding size: L"
4545
curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
4646
-H "Accept: application/vnd.github.v3+json" \
4747
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
4848
-d '["size: L"]'
49-
elif [ ${{ env.size }} -gt 15 ]; then
49+
elif [ ${{ env.SIZE }} -gt 15 ]; then
5050
echo "Adding size: M"
5151
curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
5252
-H "Accept: application/vnd.github.v3+json" \
5353
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
5454
-d '["size: M"]'
55-
elif [ ${{ env.size }} -gt 5 ]; then
55+
elif [ ${{ env.SIZE }} -gt 5 ]; then
5656
echo "Adding size: S"
5757
curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
5858
-H "Accept: application/vnd.github.v3+json" \

0 commit comments

Comments
 (0)