-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (49 loc) · 1.52 KB
/
upgrade.yml
File metadata and controls
55 lines (49 loc) · 1.52 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Upgrade
on:
workflow_dispatch:
inputs:
gpgsign:
type: boolean
description: GPG Sign
default: false
jobs:
Dependencies:
permissions:
contents: write
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup
- name: Upgrade
if: ${{ github.event.inputs.gpgsign == 'false' }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
task upgrade
git push origin main
- name: (GPG) Setup
if: ${{ github.event.inputs.gpgsign == 'true' }}
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.BOT_GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: true
- name: (GPG) Upgrade
if: ${{ github.event.inputs.gpgsign == 'true' }}
run: |
task upgrade
git push origin main
env:
GIT_AUTHOR_NAME: ${{ steps.import-gpg.outputs.name }}
GIT_AUTHOR_EMAIL: ${{ steps.import-gpg.outputs.email }}
GIT_COMMITTER_NAME: ${{ steps.import-gpg.outputs.name }}
GIT_COMMITTER_EMAIL: ${{ steps.import-gpg.outputs.email }}