Skip to content

Commit 47acffd

Browse files
committed
Have GitHub generate a manifest if needed
1 parent 5a6e1ee commit 47acffd

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/manifest.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Update manifest.xml
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: 'Version number to set in manifest.xml'
7+
required: true
8+
default: '0.0.0'
9+
jobs:
10+
push-dev:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- name: Set line endings
14+
run: git config --global core.autocrlf true
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
with:
18+
ref: 'dev'
19+
fetch-depth: 0
20+
- name: Configure bot user
21+
run: |
22+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
23+
git config --global user.name "github-actions[bot]"
24+
- name: Update manifest.xml
25+
run: python3 update_manifest.py --quiet --in-place --set-version ${{ github.event.inputs.version }}
26+
- name: Push to dev branch
27+
run: |
28+
git commit -am "Update manifest" --allow-empty --author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
29+
git push origin HEAD:dev

0 commit comments

Comments
 (0)