瀏覽代碼

Merge pull request #1157 from dave-tucker/codegen-improvements

ci: Improve Codegen Workflow
Dave Tucker 2 月之前
父節點
當前提交
5942fe3702
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      .github/workflows/gen.yml

+ 10 - 2
.github/workflows/gen.yml

@@ -39,14 +39,22 @@ jobs:
         run: |
           git diff --quiet || echo "COMMIT_CHANGES=1" >> $GITHUB_ENV
 
+      - name: Bless public API changes
+        if: env.COMMIT_CHANGES == 1
+        run: |
+          cargo xtask public-api --bless
+
       - name: Commit Changes
         id: commit
         if: env.COMMIT_CHANGES == 1
         uses: devops-infra/action-commit-push@master
         with:
           github_token: "${{ secrets.CRABBY_GITHUB_TOKEN }}"
-          commit_prefix: "[codegen] Update libbpf to ${{ env.LIBBPF_SHA }}"
-          commit_message: "Update libbpf to ${{ env.LIBBPF_SHA }}"
+          commit_message: |
+            chore(aya-obj, aya-ebpf-bindings): Regenerate bindings
+
+            libbpf commit: ${{ env.LIBBPF_SHA }}
+
           target_branch: codegen
           force: true