-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.16 KB
/
action-ebuild-maintain.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
39
40
41
name: Ebuild Maintain
on:
repository_dispatch:
schedule:
# min hour day month dow
- cron: "0 0 * * 1"
jobs:
action-ebuild-maintain:
runs-on: ubuntu-latest
steps:
# Check out the repository
- uses: actions/checkout@master
# Prepare the environment
- name: Prepare
id: prepare
run: |
echo "::set-output name=datetime::$(date +"%Y%m%d%H%M")"
echo "::set-output name=workspace::${GITHUB_WORKSPACE}"
mkdir -p "${GITHUB_WORKSPACE}/distfiles" "${GITHUB_WORKSPACE}/binpkgs"
# Cache distfiles and binary packages
- name: Cache distfiles
id: cache-distfiles
uses: gerbal/always-cache@v1.0.3
with:
path: ${{ steps.prepare.outputs.workspace }}/distfiles
key: distfiles-${{ steps.prepare.outputs.datetime }}
restore-keys: |
distfiles-${{ steps.prepare.outputs.datetime }}
distfiles
# Run the ebuild keyword action
- uses: hacking-gentoo/action-ebuild-maintain@v1
with:
auth_token: ${{ secrets.PR_TOKEN }}
deploy_key: ${{ secrets.GHA_DEPLOY_KEY }}
overlay_repo: hacking-gentoo/overlay
overlay_branch: master