-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (43 loc) · 1.28 KB
/
update.yml
File metadata and controls
43 lines (43 loc) · 1.28 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
on:
workflow_dispatch:
schedule:
- cron: '5 0,8,16 * * *'
permissions:
contents: write
pull-requests: write
name: 'Auto: Update files from IEEE'
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26'
- name: Update from IEEE
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go run cmd/update/main.go && curl -s https://hc-ping.com/5224ca44-6041-4c1c-a92a-15679062037b
- name: create-pull-request
uses: peter-evans/create-pull-request@v7
id: cpr
with:
committer: "GitHub <noreply@github.com>"
author: "GitHub <noreply@github.com>"
commit-message: "Auto: Update files from IEEE"
branch: auto/update-ieee
delete-branch: true
title: 'Auto: Update files from IEEE'
add-paths: data, oui_table.go
labels: |
autoupdate
- name: Enable Pull Request Automerge
run: gh pr merge -d --merge --admin "${{ steps.cpr.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}