Skip to content

Update Awesome List #38693

Update Awesome List

Update Awesome List #38693

Workflow file for this run

name: Update Awesome List
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
update-awesome-list:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Git
run: |
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global user.name 'github-actions[bot]'
- name: Clone the repository and checkout to the branch
run: |
REPOSITORY_URL="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git clone "${REPOSITORY_URL}" repository
cd repository
git checkout 'gh-pages'
- name: Update Awesome Lists
run: node index.js repository
- name: Git Commit & Push
run: |
cd repository
git add .
git commit -m '[bot] Updated Awesome Lists' && git push || true
update-github-pages:
needs: update-awesome-list
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup Git
run: |
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global user.name 'github-actions[bot]'
- name: Clone the repository and checkout to the branch
run: |
REPOSITORY_URL="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git clone "${REPOSITORY_URL}" repository
cd repository
git checkout 'gh-pages'
- name: Build GitHub Pages
env:
BUNDLE_PATH: vendor/bundle
JEKYLL_ENV: production
JEKYLL_GITHUB_TOKEN: ${{ github.token }}
PAGES_REPO_NWO: ${{ github.repository }}
run: |
set -eux
bundle install
rm -fr repository/docs
bundle exec jekyll build --config _config.yml --source repository --destination repository/docs
cp docs/CNAME repository/docs/CNAME
- name: Git Commit & Push
run: |
cd repository
git add docs
git commit -m '[bot] Updated GitHub Pages' && git push || true