-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (38 loc) · 1.29 KB
/
versions.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
38
name: Check for new Droid versions
on:
workflow_dispatch:
schedule:
- cron: '30 4 * * 1'
permissions:
id-token: write
contents: write
jobs:
check-versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v4
with:
git_user_signingkey: true
git_commit_gpgsign: true
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- run: pip install requests
- run: python .github/scripts/check_for_new_version.py
- id: check-diff
run: git diff --exit-code
continue-on-error: true
- if: steps.check-diff.outcome != 'success'
run: |
git config --global user.email [email protected]
git config --global user.name tna-digital-archiving-jenkins
git checkout -b $BRANCH_NAME
git add -A
git commit -m "Droid version bump"
git push -u origin $BRANCH_NAME
gh pr create --title "Droid Version Bump" --body "Bump Droid Version"
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_PAT }}
BRANCH_NAME: droid-version-bump-${{ github.run_id }}${{ github.run_attempt }}