generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (41 loc) · 1.31 KB
/
generate-atom-news-feeds.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
# The bot user https://github.com/hlx-macktrucks-bot 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 this.
# see https://github.com/hlxsites/vg-macktrucks-com/settings/secrets/actions
# 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: ./.github/ci
run: npm install
- name: Generate Feed
working-directory: ./.github/ci
run: node generate-news-feed.js
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update feed.xml"