diff --git a/.github/workflows/sync-version-with-upstream.yml b/.github/workflows/sync-version-with-upstream.yml new file mode 100644 index 0000000..1e76b7e --- /dev/null +++ b/.github/workflows/sync-version-with-upstream.yml @@ -0,0 +1,29 @@ +name: Update + +on: + # Runs at 10:00 UTC every day + schedule: + - cron: '0 10 * * *' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + sync: + name: 🔄 Sync version with upstream + environment: "Candidate Branch" + runs-on: ubuntu-latest + steps: + - name: 🔄 Sync version with upstream + uses: snapcrafters/ci/sync-version@main + with: + token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }} + update-script: | + VERSION=$( + curl -sL https://download.eclipse.org/technology/epp/downloads/release/release.xml | + grep -oPm1 "(?<=)[^<]+" | sed 's/\/R//' + ) + sed -i 's/^\(version: \).*$/\1'"$VERSION"'/' snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index ad8080c..2529c93 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -3,6 +3,7 @@ base: core22 version: '2023-12' summary: Extensible Tool Platform and Java IDE +website: https://eclipse.org/ide description: Eclipse provides IDEs and platforms for nearly every language and architecture. We are famous for our Java IDE, C/C++, JavaScript and PHP IDEs built on extensible @@ -24,8 +25,8 @@ parts: eclipse: plugin: dump source: - - on amd64: https://download.eclipse.org/technology/epp/downloads/release/2023-12/R/eclipse-java-2023-12-R-linux-gtk-x86_64.tar.gz - - on arm64: https://download.eclipse.org/technology/epp/downloads/release/2023-12/R/eclipse-java-2023-12-R-linux-gtk-aarch64.tar.gz + - on amd64: "https://download.eclipse.org/technology/epp/downloads/release/$SNAPCRAFT_PROJECT_VERSION/R/eclipse-java-$SNAPCRAFT_PROJECT_VERSION-R-linux-gtk-x86_64.tar.gz" + - on arm64: "https://download.eclipse.org/technology/epp/downloads/release/$SNAPCRAFT_PROJECT_VERSION/R/eclipse-java-$SNAPCRAFT_PROJECT_VERSION-R-linux-gtk-aarch64.tar.gz" build-attributes: - no-patchelf stage-packages: