Skip to content

Commit

Permalink
wip: Re-enable request labeler workflow
Browse files Browse the repository at this point in the history
This reverts commit 6be8324 (wip: Update request labeler workflow to be no-op)

Since the user who created the issue can also update its description,
the label will be used as the authoritative source to describe the
type of instance (aka flavor) associated with a server.

It also fixes the extraction of the value adapting change similar
to 40d5f12 (wip: Fix extraction of cloud computing instance flavor)
  • Loading branch information
jcfr committed May 4, 2024
1 parent 93ffa6f commit fe5800d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/request-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ jobs:
id: extract
run: |
instance_flavor=$(echo ${{ toJSON(steps.parse.outputs.data) }} | \
jq -r '."instance-flavor".text' | sed 's/ -.*$//')
jq -r '."cloud-computing-instance-flavor".text | split(" - ")[0]')
echo "instance_flavor [$instance_flavor]"
echo "instance_flavor=$instance_flavor" >> $GITHUB_OUTPUT
- name: Add flavor label
# Since instance flavor is already reported in the issue description, labels have been removed
run: true || gh issue edit "$NUMBER" --add-label "$LABELS"
run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
Expand Down

0 comments on commit fe5800d

Please sign in to comment.