GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/.github/workflows/label-flaky-test-issue.yml at main · bezuglov/node 53 lines (45 loc) · 1.6 KB / Copy pathlabel-flaky-test-issue.ymlFile metadata and controls53 lines (45 loc) · 1.6 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 name: Label Flaky Test Issues on: issues: types: [labeled] permissions: contents: read jobs: label: if: github.event.label.name == 'flaky-test' runs-on: ubuntu-slim permissions: issues: write steps: - name: Extract labels id: extract-labels env: BODY: ${{ github.event.issue.body }} run: | BODY="${BODY//$'\n'/'\n'}" declare -A platform2label platform2label["AIX"]="aix"; platform2label["FreeBSD"]="freebsd"; platform2label["Linux ARM64"]="linux"; platform2label["Linux PPC64LE"]="ppc"; platform2label["Linux s390x"]="s390"; platform2label["Linux x64"]="linux"; platform2label["macOS ARM64"]="macos"; platform2label["macOS x64"]="macos"; platform2label["SmartOS"]="smartos"; platform2label["Windows"]="windows"; # sed is cleaning up the edges PLATFORMS=$(echo $BODY | sed 's/^.*Platform\\n\\n//' | sed 's/\(, Other\)\?\\n\\n.*$//') 2> /dev/null readarray -d , -t list <<< "$PLATFORMS" labels= for row in "${list[@]}"; do \ platform=$(echo $row | xargs); \ labels="${labels}${platform2label[$platform]},"; \ done; echo "LABELS=${labels::-1}" >> $GITHUB_OUTPUT - name: Add labels env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NUMBER: ${{ github.event.issue.number }} LABELS: ${{ steps.extract-labels.outputs.LABELS }} run: gh issue edit "$NUMBER" --repo "$GITHUB_REPOSITORY" --add-label "$LABELS" |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |