Skip to content

Commit 525e793

Browse files
authored
Merge pull request #1 from dappnode/copilot/add-existing-workflows
Add GitHub Actions workflows from DAppNodePackage-openclaw
2 parents ebe9eb5 + 74665cb commit 525e793

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/auto_check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Bump upstream version
2+
3+
on:
4+
schedule:
5+
- cron: "00 */4 * * *"
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
bump-upstream:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: "22"
20+
- run: npx @dappnode/dappnodesdk github-action bump-upstream
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
24+
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "Main"
2+
on:
3+
repository_dispatch:
4+
push:
5+
paths-ignore:
6+
- "README.md"
7+
8+
permissions:
9+
contents: write
10+
packages: write
11+
pull-requests: write
12+
13+
jobs:
14+
build-hash:
15+
runs-on: ubuntu-latest
16+
name: Build and post IPFS hash
17+
if: github.event_name == 'push' && github.ref != 'refs/heads/main'
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: "22"
23+
- run: npx @dappnode/dappnodesdk github-action build
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
27+
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}
28+
29+
release:
30+
name: Release
31+
runs-on: ipfs-dev-gateway
32+
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'repository_dispatch'
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: actions/setup-node@v4
36+
with:
37+
node-version: "22"
38+
- name: Log in to GitHub Container Registry
39+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
40+
- name: Publish
41+
run: npx @dappnode/dappnodesdk publish patch --github_release --timeout 1h --content_provider=http://10.200.200.7:5001 --eth_provider=https://web3.dappnode.net
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
DEVELOPER_ADDRESS: ${{ secrets.DEVELOPER_ADDRESS }}

0 commit comments

Comments
 (0)