Skip to content

Check for new Droid versions #42

Check for new Droid versions

Check for new Droid versions #42

Workflow file for this run

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 }}