Skip to content

Generating index

Generating index #674

Workflow file for this run

name: "Generating index"
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.CR_PAT }}
jobs:
jobsend:
name: "Create index"
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Armbian' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
repository: armbian/community
path: community
clean: false
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbian-alpha"
repository: "os"
filename: "alpha"
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbian-beta"
repository: "os"
filename: "beta"
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbian-gama"
repository: "os"
filename: "gama"
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbian-delta"
repository: "os"
filename: "delta"
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbiankappa"
repository: "os"
filename: "kappa"
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbianro"
repository: "os"
filename: "ro"
- name: Make build list
run: |
VERSION=$(date +%Y%U)
echo "VERSION=$VERSION" >> $GITHUB_ENV
#cat json/generic.md
#cat json/optimised.md
ls -l
cat community/.github/header.inc > README.md
echo -en " \n\n" >> README.md
cat community/.github/memo.inc >> README.md
echo -en " \n\n" >> README.md
echo -e "<br>\n\n" >> README.md
echo "| Image &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | GPG | SHA | Release | Branch | &nbsp;&nbsp;&nbsp; Variant | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Kernel |" >> README.md
echo "| --- | :--: | :--: | --: | --: | --: | --: | --: |" >> README.md
cat json/alpha.md >> README.md
cat json/beta.md >> README.md
cat json/gama.md >> README.md
cat json/delta.md >> README.md
cat json/kappa.md >> README.md
cat json/ro.md >> README.md
echo -en "\n\n&nbsp;" >> README.md
cat community/.github/footer.inc >> README.md
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_KEY2 }}
passphrase: ${{ secrets.GPG_PASSPHRASE2 }}
workdir: community
git_user_signingkey: true
git_commit_gpgsign: true
- name: Update scripts
run: |
cp README.md community/README.md
cd community
if git status --porcelain | grep .; then
git config --global user.email "[email protected]"
git config --global user.name "Armbianworker"
git config pull.rebase false
git pull
git add README.md
git commit --allow-empty -m "Update index"
git push
fi