diff --git a/.forgejo/workflows/element.yml b/.forgejo/workflows/element.yml index ffaa38bc..9750e563 100644 --- a/.forgejo/workflows/element.yml +++ b/.forgejo/workflows/element.yml @@ -4,6 +4,14 @@ on: schedule: - cron: "0 0 * * *" workflow_dispatch: + pull_request: + paths: + - ".forgejo/workflows/element.yml" + push: + branches: + - main + paths: + - ".forgejo/workflows/element.yml" concurrency: group: "element-${{ github.ref }}" @@ -101,7 +109,7 @@ jobs: cat ./element-web/webapp/config.json - name: 📤 Upload Artifact - uses: https://code.forgejo.org/actions/upload-artifact@v4 + uses: https://code.forgejo.org/actions/upload-artifact@v3 with: name: element-web path: ./element-web/webapp/ diff --git a/.forgejo/workflows/release-image.yml b/.forgejo/workflows/release-image.yml index fa4cd23f..546cdfe8 100644 --- a/.forgejo/workflows/release-image.yml +++ b/.forgejo/workflows/release-image.yml @@ -234,14 +234,24 @@ jobs: run: | mkdir -p /tmp/digests digest="${{ steps.build.outputs.digest }}" - touch "/tmp/digests/${digest#sha256:}" + echo "🔍 Build step digest output: '$digest'" + if [[ -z "$digest" ]]; then + echo "❌ ERROR: No digest found from build step" + exit 1 + fi + digest_file="/tmp/digests/${digest#sha256:}" + echo "📁 Creating digest file: $digest_file" + touch "$digest_file" + echo "✅ Digest file created successfully" + echo "📋 Contents of /tmp/digests:" + ls -la /tmp/digests/ # Binary extracted via local output for all builds - name: Rename extracted binary run: mv /tmp/binaries/sbin/conduwuit /tmp/binaries/conduwuit-${{ matrix.target_cpu }}-${{ matrix.slug }}-${{ matrix.profile }} - name: Upload binary artifact - uses: forgejo/upload-artifact@v4 + uses: forgejo/upload-artifact@v3 with: name: conduwuit-${{ matrix.target_cpu }}-${{ matrix.slug }}-${{ matrix.profile }} path: /tmp/binaries/conduwuit-${{ matrix.target_cpu }}-${{ matrix.slug }}-${{ matrix.profile }} @@ -249,7 +259,7 @@ jobs: - name: Upload digest if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }} - uses: forgejo/upload-artifact@v4 + uses: forgejo/upload-artifact@v3 with: name: digests-${{ matrix.slug }} path: /tmp/digests/* diff --git a/renovate.json b/renovate.json index 537e4fb1..96deb9cc 100644 --- a/renovate.json +++ b/renovate.json @@ -55,6 +55,12 @@ { "matchManagers": ["cargo"], "prConcurrentLimit": 5 + }, + { + "description": "Pin upload-artifact to v3 for Forgejo compatibility", + "matchManagers": ["github-actions"], + "matchPackageNames": ["**/upload-artifact"], + "allowedVersions": "< 4.0.0" } ], "customManagers": [