Skip to content

delete scheduled workflows that we don't use #290

delete scheduled workflows that we don't use

delete scheduled workflows that we don't use #290

Workflow file for this run

name: Rebased
on:
push:
branches:
# i had to fix up the history of master due to the messed up way upstream releases are done.
# i didn't want to actually touch its history so i created a new master branch instead.
- master2
pull_request:
workflow_dispatch:
inputs:
version:
type: string
description: 'build number'
required: true
jobs:
get_version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v4.2.2
# checkout only needed to read build.txt. if run manually we specify the version as an input value
if: github.event_name != 'workflow_dispatch'
- name: get build number
id: get_version
run: |
if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then
version=${{ inputs.version }}
else
version="$(cat build.txt)"
fi
echo "version: $version"
echo "version=$version" >> "$GITHUB_OUTPUT"
build:
needs: get_version
uses: ./.github/workflows/ide_build_and_upload.yml
with:
artifacts_dir: out/idea-ce/artifacts
product: intellij_idea
version: ${{ needs.get_version.outputs.version }}
release:
name: Create Release
runs-on: ubuntu-latest
needs:
- get_version
- build
if: github.event_name == 'workflow_dispatch'
steps:
- uses: actions/download-artifact@v4.1.8
- name: Create Release
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
title: ${{ needs.get_version.outputs.version }}
automatic_release_tag: ${{ needs.get_version.outputs.version }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false # ideally this would be true because rebased has not had a stable release yet, but i don't like that prereleases don't appear on the sidebar
draft: true
files: |
**/*.tar.gz
**/*.AppImage
**/*.zsync
**/*.exe
**/*.dmg