File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 52
52
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
53
run : |
54
54
# Di chuyển file .pp về thư mục gốc để dễ dàng upload
55
- mv logrotate/selinux-policy/ee-logrotate.pp .
55
+ cp logrotate/selinux-policy/ee-logrotate.pp .
56
56
gh release upload ${{ steps.get_tag.outputs.latest_tag }} ee-logrotate.pp --clobber
57
57
echo "✅ Successfully uploaded ee-logrotate.pp to release '${{ steps.get_tag.outputs.latest_tag }}'"
58
+
59
+ - name : Commit and push compiled policy to repository
60
+ run : |
61
+ # Cấu hình git
62
+ git config --local user.email "[email protected] "
63
+ git config --local user.name "GitHub Action"
64
+
65
+ # Di chuyển file .pp vào thư mục mong muốn (nếu cần)
66
+ # Ở đây giữ nguyên trong thư mục logrotate/selinux-policy/
67
+
68
+ # Thêm file .pp vào staging
69
+ git add logrotate/selinux-policy/ee-logrotate.pp
70
+
71
+ # Kiểm tra xem có thay đổi nào để commit không
72
+ if git diff --staged --quiet; then
73
+ echo "No changes to commit"
74
+ else
75
+ # Commit và push
76
+ git commit -m "ci: auto-compiled SELinux policy [skip ci]"
77
+ git push
78
+ echo "✅ Successfully committed and pushed ee-logrotate.pp to repository"
79
+ fi
You can’t perform that action at this time.
0 commit comments