Skip to content

Commit 24c46a6

Browse files
committed
github-actions: replace third-party actions
1 parent 5d9a461 commit 24c46a6

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.github/workflows/labeler.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ permissions:
1414
jobs:
1515
triage:
1616
runs-on: ubuntu-latest
17+
env:
18+
NUMBER: ${{ github.event.issue.number }}
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1720
steps:
1821
- name: Get token
1922
id: get_token
@@ -26,19 +29,12 @@ jobs:
2629
"members": "read"
2730
}
2831
- name: Add agent-python label
29-
uses: actions-ecosystem/action-add-labels@v1
30-
with:
31-
labels: agent-python
32+
run: gh issue edit "$NUMBER" --add-label "agent-python"
3233
- id: is_elastic_member
3334
uses: elastic/oblt-actions/github/is-member-of@v1
3435
with:
3536
github-org: "elastic"
3637
github-user: ${{ github.actor }}
3738
github-token: ${{ steps.get_token.outputs.token }}
3839
- name: Add community and triage labels
39-
if: contains(steps.is_elastic_member.outputs.result, 'false') && github.actor != 'dependabot[bot]' && github.actor != 'elastic-observability-automation[bot]'
40-
uses: actions-ecosystem/action-add-labels@v1
41-
with:
42-
labels: |
43-
community
44-
triage
40+
run: gh issue edit "$NUMBER" --add-label "community,triage"

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ jobs:
1212
pre-commit:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-python@v5
17-
- uses: pre-commit/[email protected]
15+
- uses: elastic/oblt-actions/pre-commit@v1

0 commit comments

Comments
 (0)