File tree Expand file tree Collapse file tree 4 files changed +132
-0
lines changed Expand file tree Collapse file tree 4 files changed +132
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Ebuild Maintain
2+
3+ on :
4+ repository_dispatch :
5+ schedule :
6+ # min hour day month dow
7+ - cron : " 30 1 * * 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/always-cache@v1.0.3
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
Original file line number Diff line number Diff line change 1+ name : Release Package
2+
3+ on :
4+ release :
5+ types : [published, edited]
6+
7+ jobs :
8+ tests :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@master
12+ - uses : hacking-gentoo/action-ebuild-release@next
13+ with :
14+ auth_token : ${{ secrets.PR_TOKEN }}
15+ deploy_key : ${{ secrets.DEPLOY_KEY }}
16+ overlay_repo : MADhacking/overlay
Original file line number Diff line number Diff line change 1+ name : Ebuild Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - ' **'
7+ tags-ignore :
8+ - ' *.*'
9+ paths-ignore :
10+ - ' README.md'
11+ - ' LICENSE'
12+ - ' .github/**'
13+
14+ jobs :
15+ tests :
16+ runs-on : ubuntu-latest
17+ steps :
18+ # Check out the repository
19+ - uses : actions/checkout@master
20+
21+ # Prepare the environment
22+ - name : Prepare
23+ id : prepare
24+ run : |
25+ echo "::set-output name=datetime::$(date +"%Y%m%d%H%M")"
26+ echo "::set-output name=workspace::${GITHUB_WORKSPACE}"
27+ mkdir -p "${GITHUB_WORKSPACE}/distfiles" "${GITHUB_WORKSPACE}/binpkgs"
28+
29+ # Cache distfiles and binary packages
30+ - name : Cache distfiles
31+ id : cache-distfiles
32+ uses : gerbal/always-cache@v1.0.3
33+ with :
34+ path : ${{ steps.prepare.outputs.workspace }}/distfiles
35+ key : distfiles-${{ steps.prepare.outputs.datetime }}
36+ restore-keys : |
37+ distfiles-${{ steps.prepare.outputs.datetime }}
38+ distfiles
39+ - name : Cache binpkgs
40+ id : cache-binpkgs
41+ uses : gerbal/always-cache@v1.0.3
42+ with :
43+ path : ${{ steps.prepare.outputs.workspace }}/binpkgs
44+ key : binpkgs-${{ steps.prepare.outputs.datetime }}
45+ restore-keys : |
46+ binpkgs-${{ steps.prepare.outputs.datetime }}
47+ binpkgs
48+
49+ # Run the ebuild tests
50+ - uses : hacking-gentoo/action-ebuild-test@next
51+ env :
52+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
53+ with :
54+ auth_token : ${{ secrets.PR_TOKEN }}
55+ deploy_key : ${{ secrets.DEPLOY_KEY }}
56+ overlay_repo : MADhacking/overlay
Original file line number Diff line number Diff line change 1+ name : Shellcheck
2+
3+ on :
4+ push :
5+ branches :
6+ - ' **'
7+ tags-ignore :
8+ - ' *.*'
9+ paths-ignore :
10+ - ' README.md'
11+ - ' LICENSE'
12+ - ' .github/**'
13+
14+ jobs :
15+ tests :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@master
19+ - uses : hacking-actions/shellcheck@master
You can’t perform that action at this time.
0 commit comments