mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
regression labeler fix (#123)
This commit is contained in:
@@ -145,7 +145,7 @@ jobs:
|
|||||||
runs-on: macos-${{ matrix.version }}
|
runs-on: macos-${{ matrix.version }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: [13]
|
version: [14]
|
||||||
steps:
|
steps:
|
||||||
# Force PHP to 8.0
|
# Force PHP to 8.0
|
||||||
# Doing this because tests fail in PHP 8.1 (default on macos Github Runner as of Dec 2021)
|
# Doing this because tests fail in PHP 8.1 (default on macos Github Runner as of Dec 2021)
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ jobs:
|
|||||||
- name: Fetch template body
|
- name: Fetch template body
|
||||||
id: check_regression
|
id: check_regression
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
TEMPLATE_BODY: ${{ github.event.issue.body }}
|
TEMPLATE_BODY: ${{ github.event.issue.body }}
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
@@ -24,9 +23,12 @@ jobs:
|
|||||||
- name: Manage regression label
|
- name: Manage regression label
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
IS_REGRESSION: ${{ steps.check_regression.outputs.is_regression }}
|
||||||
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||||
|
REPO: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ steps.check_regression.outputs.is_regression }}" == "true" ]; then
|
if [ "$IS_REGRESSION" == "true" ]; then
|
||||||
gh issue edit ${{ github.event.issue.number }} --add-label "potential-regression" -R ${{ github.repository }}
|
gh issue edit "$ISSUE_NUMBER" --add-label "potential-regression" -R "$REPO"
|
||||||
else
|
else
|
||||||
gh issue edit ${{ github.event.issue.number }} --remove-label "potential-regression" -R ${{ github.repository }}
|
gh issue edit "$ISSUE_NUMBER" --remove-label "potential-regression" -R "$REPO"
|
||||||
fi
|
fi
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
"php": ">=5.5"
|
"php": ">=5.5"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit":"^4.8.35||^5.6.3||^9.5",
|
"phpunit/phpunit":"^4.8.35||^5.6.3||^8.5||^9.5",
|
||||||
"yoast/phpunit-polyfills": "^1.0"
|
"yoast/phpunit-polyfills": "^1.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
|||||||
Reference in New Issue
Block a user