Skip to content

Commit 5e25c42

Browse files
committed
Add action-ebuild-maintain workflow.
1 parent e5d3ad5 commit 5e25c42

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Ebuild Maintain
2+
3+
on:
4+
repository_dispatch:
5+
schedule:
6+
# min hour day month dow
7+
- cron: "30 0 * * 1"
8+
9+
jobs:
10+
action-ebuild-maintain:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Check out the repository
14+
- uses: actions/checkout@master
15+
16+
# Prepare the environment
17+
- name: Prepare
18+
id: prepare
19+
run: |
20+
echo "::set-output name=datetime::$(date +"%Y%m%d%H%M")"
21+
echo "::set-output name=workspace::${GITHUB_WORKSPACE}"
22+
mkdir -p "${GITHUB_WORKSPACE}/distfiles" "${GITHUB_WORKSPACE}/binpkgs"
23+
24+
# Cache distfiles and binary packages
25+
- name: Cache distfiles
26+
id: cache-distfiles
27+
uses: gerbal/[email protected]
28+
with:
29+
path: ${{ steps.prepare.outputs.workspace }}/distfiles
30+
key: distfiles-${{ steps.prepare.outputs.datetime }}
31+
restore-keys: |
32+
distfiles-${{ steps.prepare.outputs.datetime }}
33+
distfiles
34+
35+
# Run the ebuild keyword action
36+
- uses: hacking-gentoo/action-ebuild-maintain@next
37+
with:
38+
auth_token: ${{ secrets.PR_TOKEN }}
39+
deploy_key: ${{ secrets.DEPLOY_KEY }}
40+
overlay_repo: MADhacking/overlay
41+
overlay_branch: master

0 commit comments

Comments
 (0)