Skip to content

update debiancn.org index page to Pages #438

update debiancn.org index page to Pages

update debiancn.org index page to Pages #438

Workflow file for this run

# Simple workflow for deploying static content to GitHub Pages
name: update debiancn.org index page to Pages
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '00 23 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
jobs:
update_files:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
repository: debiancn/debiancn-home
- name: apt update
run: sudo apt update
- name: install xsltproc
run: sudo apt install xsltproc
- name: generate index page
run: make
- name: Archive new page
uses: actions/upload-artifact@v3
with:
name: new-index-page
path: |
index.html
privacy-terms.html
check:
needs: update_files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: new-index-page
- run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git status
git commit -m "action auto update" || echo "nothing to update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}