2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

サブディレクトリに対してGithub Actionsを動かしたいが動かなかった

2
Posted at

はじめに

  • 一つのgit repositoryに複数のviteプロジェクトを作成している

問題

  • 以下のファイルを .github/workflows/deploy.yml として登録し、 ./path/to/subprj へpushしてもうまくいかなかった
name: deploy

on:
  push:
    branches:
      - main
    paths:
      - './path/to/subprj/**'

defaults:
  run:
    working-directory: './path/to/subprj'

解決

  • pathsから ./ を除いて解決
name: deploy

on:
  push:
    branches:
      - main
    paths:
-     - './path/to/subprj/**'
+     - 'path/to/subprj/**'

defaults:
  run:
    working-directory: './path/to/subprj'

終わりに

  • ./を使うなとは明記されていないが、使用例には ./が入っていないのが根拠になりそう

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?