Skip to content

Commit ef06a16

Browse files
authored
github-actions: replace third-party actions (#2257)
1 parent e15e8c6 commit ef06a16

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/labeler.yml

Lines changed: 5 additions & 8 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,9 +29,7 @@ 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:
@@ -37,8 +38,4 @@ jobs:
3738
github-token: ${{ steps.get_token.outputs.token }}
3839
- name: Add community and triage labels
3940
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
41+
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)