samuelmeuli / action-electron-builder

:electron: GitHub Action for building and releasing Electron apps
MIT License
670 stars 206 forks source link

Failed to download action #1

Closed WaylandWong closed 4 years ago

WaylandWong commented 4 years ago

I copy build.yaml from https://github.com/samuelmeuli/mini-diary/blob/master/.github/workflows/release.yml , and when I push commit to master, action failed with Failed to download action. Logs:

2019-11-17T14:36:35.5549329Z ##[section]Starting: Request a runner to run this job
2019-11-17T14:36:36.5730105Z Requesting a hosted runner in current repository's account/organization with labels: 'macos-10.14', require runner match: True
2019-11-17T14:36:36.6680005Z Labels matched hosted runners has been found, waiting for one of them get assigned for this job.
2019-11-17T14:36:36.7033118Z ##[section]Finishing: Request a runner to run this job
2019-11-17T14:36:51.3950250Z Current runner version: '2.160.2'
2019-11-17T14:36:51.3952170Z Prepare workflow directory
2019-11-17T14:36:51.4253570Z Prepare all required actions
2019-11-17T14:36:51.4283350Z Download action repository 'actions/checkout@v1'
2019-11-17T14:36:52.0711750Z Download action repository 'actions/setup-node@v1'
2019-11-17T14:36:53.1221420Z Download action repository 'samuelmeuli/action-electron-builder@v1'
2019-11-17T14:36:53.3762540Z ##[warning]Failed to download action 'https://api.github.com/repos/samuelmeuli/action-electron-builder/tarball/v1'. Error Response status code does not indicate success: 404 (Not Found).
2019-11-17T14:36:53.3769230Z ##[warning]Back off 28.663 seconds before retry.
2019-11-17T14:37:22.3056690Z ##[warning]Failed to download action 'https://api.github.com/repos/samuelmeuli/action-electron-builder/tarball/v1'. Error Response status code does not indicate success: 404 (Not Found).
2019-11-17T14:37:22.3059050Z ##[warning]Back off 26.215 seconds before retry.
2019-11-17T14:37:48.8101150Z ##[error]Response status code does not indicate success: 404 (Not Found).

My build.yaml:

name: Build/release

on: push

jobs:
  release:
    runs-on: ${{ matrix.os }}

    # Platforms to build on/for
    strategy:
      matrix:
        os: [macos-10.14, windows-2019, ubuntu-18.04]

    steps:
      - name: Check out Git repository
        uses: actions/checkout@v1

      - name: Install Node.js, NPM and Yarn
        uses: actions/setup-node@v1
        with:
          node-version: 10

      - name: Build/release Electron app
        uses: samuelmeuli/action-electron-builder@v1
        with:
          # GitHub token, automatically provided to the action
          # (No need to define this secret in the repo settings)
          github_token: ${{ secrets.github_token }}

          # macOS code signing certificate
          mac_certs: ${{ secrets.mac_certs }}
          mac_certs_password: ${{ secrets.mac_certs_password }}

          # If the commit is tagged with a version (e.g. "v1.0.0"),
          # release the app after building
          release: ${{ startsWith(github.ref, 'refs/tags/v') }}
samuelmeuli commented 4 years ago

Weird, referencing a tag should work according to the docs.

This isn't ideal, but I'd suggest writing the following until referencing a version works:

uses: samuelmeuli/action-electron-builder@master
WaylandWong commented 4 years ago

I change to samuelmeuli/action-electron-builder@v1.0.0 and it success. Thanks

samuelmeuli commented 4 years ago

I've created a v1 branch, so samuelmeuli/action-electron-builder@v1 should now work.