We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3e7584 commit 4fa2abeCopy full SHA for 4fa2abe
1 file changed
.github/workflows/auto_check.yml
@@ -12,7 +12,18 @@ jobs:
12
runs-on: ubuntu-latest
13
steps:
14
- uses: actions/checkout@v3
15
- - run: npx @dappnode/dappnodesdk github-action bump-upstream
+
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 }}
0 commit comments