Skip to content

Commit a77820d

Browse files
committed
refactor: use reusable bump-upstream workflow
1 parent 25c2b8c commit a77820d

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

‎.github/workflows/auto_check.yml‎

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,12 @@ name: Bump upstream version
33
on:
44
schedule:
55
- cron: "00 */4 * * *"
6+
workflow_dispatch:
67
push:
78
branches:
89
- "main"
910

1011
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v3
15-
16-
- name: Check if latest release is stable
17-
id: check
18-
run: |
19-
RELEASE=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
20-
https://api.github.com/repos/nextcloud/server/releases/latest)
21-
PRERELEASE=$(echo "$RELEASE" | jq -r '.prerelease')
22-
echo "prerelease=$PRERELEASE" >> $GITHUB_OUTPUT
23-
24-
- name: Bump upstream (stable only)
25-
if: steps.check.outputs.prerelease == 'false'
26-
run: npx @dappnode/dappnodesdk github-action bump-upstream
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
30-
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}
12+
bump-upstream:
13+
uses: dappnode/workflows/.github/workflows/bump-upstream.yml@master
14+
secrets: inherit

0 commit comments

Comments
 (0)