diff --git a/.github/workflows/restop.yml b/.github/workflows/restop.yml index 884d45b..8414275 100644 --- a/.github/workflows/restop.yml +++ b/.github/workflows/restop.yml @@ -1,17 +1,6 @@ name: Create release -on: - workflow_dispatch: - inputs: - sha: - description: "Commit SHA to create release from" - required: true - tag: - description: "Tag of the release" - required: true - push: - tags: - - 'v*' +on: [push] jobs: create-release: @@ -22,7 +11,7 @@ jobs: - name: Show GLIBC run: ldd --version - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v1 with: ref: ${{ github.event.inputs.sha || env.GITHUB_SHA }} @@ -32,12 +21,6 @@ jobs: echo "INPUT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV echo "INPUT_TAG=$(git tag --points-at HEAD)" >> $GITHUB_ENV - - name: Set env on trigger - if: github.event_name == 'workflow_dispatch' - run: | - echo "INPUT_SHA=${{ github.event.inputs.sha }}" >> $GITHUB_ENV - echo "INPUT_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV - - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: @@ -81,4 +64,4 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ${{ env.ARCHIVE_NAME }} asset_name: ${{ env.ARCHIVE_NAME }} - asset_content_type: application/tar+gzip \ No newline at end of file + asset_content_type: application/tar+gzip