Auto: Update files from IEEE #608
This file contains hidden or 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
| 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@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| 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 }} |