[23.2] Add support for Cgroupsv2 #12531
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maintenance Bot | |
on: | |
pull_request_target: | |
types: [opened, reopened, edited, ready_for_review, unlabeled] | |
jobs: | |
labeler: | |
name: Assign labels and milestone | |
if: github.repository_owner == 'galaxyproject' | |
runs-on: ubuntu-latest | |
env: | |
MILESTONE_NUMBER: 25 | |
steps: | |
- name: Get latest pull request labels | |
id: get_pr_labels | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const response = await github.rest.issues.listLabelsOnIssue({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.issue.number, | |
}); | |
console.log(response); | |
return response.data; | |
- name: Add area labels | |
if: ${{ ! contains(join(fromJSON(steps.get_pr_labels.outputs.result).*.name, ', '), 'area/') }} | |
uses: actions/labeler@v4 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Assign milestone | |
if: | | |
! github.event.pull_request.milestone && | |
! contains(github.event.pull_request.labels.*.name, 'merge') && | |
! contains(github.event.pull_request.labels.*.name, 'status/WIP') && | |
! contains(github.event.pull_request.title, 'WIP') && | |
! github.event.pull_request.draft | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
github.rest.issues.update({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.issue.number, | |
milestone: ${{ env.MILESTONE_NUMBER }}, | |
}); |