Skip to content

πŸ” update

πŸ” update #793

Workflow file for this run

name: πŸ” update
on:
schedule:
- cron: '0 12 * * *'
push:
paths:
- '.github/workflows/update.yml'
workflow_dispatch:
jobs:
update:
name: update
runs-on: macOS-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@master
with:
fetch-depth: 1
- name: 🌊 Install gallery-workflow
run: |
rm -f .build/release/gallery-workflow
curl -L https://github.com/$GITHUB_REPOSITORY-workflow/releases/latest/download/gallery-workflow.zip --output gallery-workflow.zip
unzip gallery-workflow.zip
rm gallery-workflow.zip
if [ -f .build/release/gallery-workflow ]; then
echo "gallery-workflow installed"
.build/release/gallery-workflow --version
else
echo "gallery-workflow cannot be downloaded using url https://github.com/$GITHUB_REPOSITORY-workflow/releases/latest/download/gallery-workflow.zip"
exit 1
fi
- name: 🏷 Update releases
run: |
.build/release/gallery-workflow --github-token "${{ secrets.PUBLISH_TOKEN }}"
- name: πŸ₯™ Aggregate by topics
run: |
.build/release/gallery-workflow aggregate
- name: 🧹 Format
run: |
brew install yq
./.github/outputpretty.sh
- name: ⬆️ Push
run: |
rm -f .build/release/gallery-workflow
git add .
git config --local user.email "eric.marchand@4d.com"
git config --local user.name "mesopelagique"
git diff --quiet && git diff --staged --quiet || git commit -a -m "πŸ”„ Update"
./.github/push.sh "main" "${{ secrets.PUBLISH_TOKEN }}"