-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (36 loc) · 1.01 KB
/
create-message.yml
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
name: Create message
on:
workflow_call:
inputs:
message:
type: string
required: true
secrets:
MICROBLOG_DEPLOY_KEY:
required: true
workflow_dispatch:
inputs:
message:
description: 'Message to announce'
type: string
required: true
jobs:
create-message:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Hard-code the repository. This is needed when this workflow is
# triggered using workflow_call from other repositories.
repository: farmOS/farmOS-microblog
ssh-key: ${{ secrets.MICROBLOG_DEPLOY_KEY }}
- name: Configure Git.
run: |
git config --global user.name 'farmOS'
git config --global user.email '[email protected]'
- name: Commit/push to farmOS-microblog.
run: |
git commit --allow-empty --cleanup=whitespace -F- << MESSAGE
${{ inputs.message }}
MESSAGE
git push origin main