mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-27 05:43:11 +00:00
Bumps the dependencies group with 6 updates:
| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `3` | `4` |
| [actions/setup-python](https://github.com/actions/setup-python) | `4` | `5` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact) | `2` | `4` |
| [helm/kind-action](https://github.com/helm/kind-action) | `1.8.0` | `1.10.0` |
| [docker/login-action](https://github.com/docker/login-action) | `3.0.0` | `3.2.0` |
| [github/issue-labeler](https://github.com/github/issue-labeler) | `2.4.1` | `3.4` |
Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)
Updates `actions/setup-python` from 4 to 5
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)
Updates `actions/upload-artifact` from 2 to 4
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v4)
Updates `helm/kind-action` from 1.8.0 to 1.10.0
- [Release notes](https://github.com/helm/kind-action/releases)
- [Commits](https://github.com/helm/kind-action/compare/v1.8.0...v1.10.0)
Updates `docker/login-action` from 3.0.0 to 3.2.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](343f7c4344...0d4c9c5ea7)
Updates `github/issue-labeler` from 2.4.1 to 3.4
- [Release notes](https://github.com/github/issue-labeler/releases)
- [Commits](https://github.com/github/issue-labeler/compare/v2.4.1...v3.4)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
---
|
|
name: Label Issues
|
|
|
|
on:
|
|
issues:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
|
|
jobs:
|
|
triage:
|
|
runs-on: ubuntu-latest
|
|
name: Label
|
|
|
|
steps:
|
|
- name: Label Issue - Needs Triage
|
|
uses: github/issue-labeler@v3.4
|
|
with:
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
not-before: 2021-12-07T07:00:00Z
|
|
configuration-path: .github/issue_labeler.yml
|
|
enable-versioned-regex: 0
|
|
if: github.event_name == 'issues'
|
|
|
|
community:
|
|
runs-on: ubuntu-latest
|
|
name: Label Issue - Community
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
- name: Install python requests
|
|
run: pip install requests
|
|
- name: Check if user is a member of Ansible org
|
|
uses: jannekem/run-python-script-action@v1
|
|
id: check_user
|
|
with:
|
|
script: |
|
|
import requests
|
|
headers = {'Accept': 'application/vnd.github+json', 'Authorization': 'token ${{ secrets.GITHUB_TOKEN }}'}
|
|
response = requests.get('${{ fromJson(toJson(github.event.issue.user.url)) }}/orgs?per_page=100', headers=headers)
|
|
is_member = False
|
|
for org in response.json():
|
|
if org['login'] == 'ansible':
|
|
is_member = True
|
|
if is_member:
|
|
print("User is member")
|
|
else:
|
|
print("User is community")
|
|
- name: Add community label if not a member
|
|
if: contains(steps.check_user.outputs.stdout, 'community')
|
|
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
|
|
with:
|
|
add-labels: "community"
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|