mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-02-02 09:31:51 +00:00
44994bb919
* add figlet generation files * Update generate-app-headers.yaml * Update generate-app-headers.sh
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Update .app-headers in /misc
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update-combined:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Generate a token
|
|
id: generate-token
|
|
uses: actions/create-github-app-token@v1
|
|
with:
|
|
app-id: ${{ secrets.CREATE_HEADER_APP_ID }}
|
|
private-key: ${{ CREATE_HEADER_SECRET }}
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Figlet
|
|
run: sudo apt-get install -y figlet
|
|
|
|
- name: Run generate-app-headers script
|
|
run: |
|
|
bash .github/workflows/generate-app-headers.sh
|
|
|
|
- name: Commit and push changes
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
|
|
run: |
|
|
git config --global user.name "github-actions[bot]"
|
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
git add ./misc/.app-headers
|
|
git commit -m "Update .app-headers in /misc" || echo "No changes to commit"
|
|
git push origin main
|