Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

##[error]Validation Failed Why does this error happen? #41

@yjcn

Description

@yjcn

This my workflow yaml. I think there is no error. But it always fails. Someone can help me ? Thanks.
图片

# on:
#   watch:
#     types: [started]
on: push
name: Upload Release Asset

jobs:
  build:
    name: Upload Release Asset
    runs-on: ubuntu-latest
    steps:
      - uses: uraimo/run-on-arch-action@v1.0.5
        id: runcmd
        with:
          architecture: aarch64
          distribution: ubuntu18.04
          run: |
            echo ::set-env name=ARCH::$(uname -m)
            echo ::set-output name=ARCH::$(uname -m)
            echo ::set-env name=TIME::$(date)
            ARCH=$(uname -m)
            echo "arch:::",$ARCH
            echo "123" >> ${ARCH}.zip
            echo `ls`
            echo `pwd`
      - name: test
        run: |
          echo ${TIME}
          echo "456" > ${ARCH}a.zip
          echo `uname -a`
          echo `pwd`
          echo `ls`
          echo ${ARCH}
      - name: Create Release
        id: create_release
        uses: actions/create-release@v1.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          ARCH: ${{ env.ARCH }}
        with:
          tag_name: ${{ github.sha }}
          release_name: Release ${{ github.sha }}
          draft: false
          prerelease: false
      - name: Upload Release Asset
        id: upload-release-asset 
        uses: actions/upload-release-asset@v1.0.1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          ARCH: ${{ env.ARCH }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: ${ARCH}.zip
          asset_name: ${ARCH}.zip
          asset_content_type: application/zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions