48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
# This is a basic workflow to help you get started with Actions
|
|
|
|
name: Update Repository
|
|
|
|
# Controls when the workflow will run
|
|
on:
|
|
#push:
|
|
# # If the configuration has changed, this ensures we apply updates.
|
|
# branches: [ main ]
|
|
|
|
#schedule:
|
|
# # Upstream releases around once per month, so twice a week should be fine.
|
|
# - cron: '23 14 * * mon,thu'
|
|
|
|
workflow_dispatch:
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
# This workflow contains a single job called "build"
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install dependencies
|
|
run: sudo env DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes gpg jq reprepro
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
# See https://github.com/marketplace/actions/github-push
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
|
|
- name: Set up GPG keys
|
|
run: |
|
|
echo "${{ secrets.GPG_SIGNING_KEY }}" | gpg --quiet --batch --yes --import
|
|
echo "echo ${{ secrets.GPG_SIGNING_PASSPHRASE }}" >/tmp/gpg-pinentry
|
|
chmod 700 /tmp/gpg-pinentry
|
|
|
|
- name: Download and include package files
|
|
run: gpg-agent --pinentry-program /tmp/gpg-pinentry --daemon ./addlatest
|
|
|
|
- name: Push changes
|
|
uses: ad-m/github-push-action@v0.6.0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: ${{ github.ref }}
|