Skip to content

Generate Atom news feeds #14

Generate Atom news feeds

Generate Atom news feeds #14

Workflow file for this run

name: Generate Atom news feeds
on:
repository_dispatch:
types:
- resource-published
schedule:
# Runs daily in case any event was missed
- cron: '30 0 * * *'
pull_request:
paths:
- '.github/ci/**'
- '.github/workflows/generate-atom-news-feeds.yaml'
- 'tools/atom/**'
jobs:
build:
runs-on: [self-hosted, solinas]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
# The bot user is used to commit the changes. The personal access token
# must be created from: https://github.com/settings/tokens
# The token is then stored in the secrets of the action.
token: ${{ secrets.BOT_ACCESS_TOKEN }}
- name: Configure git
run: |
git config user.name "GitHubActions"
git config user.email "<>"
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
working-directory: ./tools/atom
run: npm install
- name: Generate Feed
working-directory: ./tools/atom
run: node generate.js
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update feeds"