-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (35 loc) · 1.19 KB
/
update-appcast.yml
File metadata and controls
41 lines (35 loc) · 1.19 KB
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
name: Update Appcast
on:
release:
types: [published]
jobs:
update-appcast:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: main
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Update appcast.xml
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
RELEASE_NAME: ${{ github.event.release.name }}
RELEASE_BODY: ${{ github.event.release.body }}
RELEASE_DATE: ${{ github.event.release.published_at }}
RELEASE_URL: ${{ github.event.release.html_url }}
run: |
python .github/scripts/update_appcast.py
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add appcast.xml
git diff --staged --quiet || git commit -m "ci: update appcast.xml for release ${{ github.event.release.tag_name }}"
git push