name: 1Panel App Store on: workflow_dispatch: inputs: version: description: "Version to submit (e.g. 0.5.3)" required: true jobs: submit: runs-on: ubuntu-latest env: REPO_OWNER: t8y2 steps: - uses: actions/checkout@v5 - name: Submit to 1Panel App Store env: TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} run: | VERSION="${{ github.event.inputs.version }}" git clone --depth 1 -b localApps \ "https://x-access-token:${TAP_GITHUB_TOKEN}@github.com/${REPO_OWNER}/appstore-1panel.git" \ appstore cd appstore APP_DIR="apps/dbx" mkdir -p "${APP_DIR}/latest" cp "${{ github.workspace }}/deploy/1panel/data.yml" "${APP_DIR}/data.yml" cp "${{ github.workspace }}/deploy/1panel/README.md" "${APP_DIR}/README.md" if [ -f "${{ github.workspace }}/deploy/1panel/logo.png" ]; then cp "${{ github.workspace }}/deploy/1panel/logo.png" "${APP_DIR}/logo.png" fi cp -r "${{ github.workspace }}/deploy/1panel/latest/." "${APP_DIR}/latest/" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" BRANCH="app/dbx-${VERSION}" git checkout -b "${BRANCH}" git add "${APP_DIR}" if git diff --cached --quiet; then echo "1Panel app store is already up to date." else git commit -m "feat(dbx): release ${VERSION}" git push origin "${BRANCH}" gh pr create \ --repo "okxlin/appstore" \ --head "${REPO_OWNER}:${BRANCH}" \ --title "feat(dbx): release ${VERSION}" \ --body "Automated release of DBX v${VERSION}" \ --base localApps echo "::notice::1Panel App Store PR created for ${VERSION}" fi