Skip to content

Conversation

chvmvd
Copy link
Collaborator

@chvmvd chvmvd commented Dec 11, 2022

Run actions/checkout@v2
Syncing repository: sikepuri-algorithm/sikepuri-algorithm.github.io
Getting Git version info
Temporarily overriding HOME='/home/runner/work/_temp/210c8615-95bd-4053-8cb3-e06b550849c5' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/sikepuri-algorithm.github.io/sikepuri-algorithm.github.io
Deleting the contents of '/home/runner/work/sikepuri-algorithm.github.io/sikepuri-algorithm.github.io'
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Fetching the repository
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/fix-bug-in-actions*:refs/remotes/origin/fix-bug-in-actions* +refs/tags/fix-bug-in-actions*:refs/tags/fix-bug-in-actions*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 11 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/fix-bug-in-actions*:refs/remotes/origin/fix-bug-in-actions* +refs/tags/fix-bug-in-actions*:refs/tags/fix-bug-in-actions*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 20 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/fix-bug-in-actions*:refs/remotes/origin/fix-bug-in-actions* +refs/tags/fix-bug-in-actions*:refs/tags/fix-bug-in-actions*
  Error: The process '/usr/bin/git' failed with exit code 1

actions/checkoutでこのようなバグが出てしまう。解決できなかったが、ref: ${{ github.head_ref }} を消したらPRでは動いた。

@chvmvd
Copy link
Collaborator Author

chvmvd commented Dec 11, 2022

2022-12-11 01:06:57 [ERROR]   Found errors in [actionlint] linter!
2022-12-11 01:06:57 [ERROR]   Error code: 1. Command output:
------
.github/workflows/black.yml:28:9: property "black" is not defined in object type {} [expression]
   |
28 |     if: needs.changes.outputs.black == 'true'
   |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

これは、actionlintのバグかと思われる。

@chvmvd chvmvd merged commit f616e93 into sikepuri-algorithm:main Dec 11, 2022
@chvmvd chvmvd deleted the fix-bug-in-actions branch December 11, 2022 01:11
@chvmvd
Copy link
Collaborator Author

chvmvd commented Dec 11, 2022

Run actions/checkout@v2
Syncing repository: sikepuri-algorithm/sikepuri-algorithm.github.io
Getting Git version info
Temporarily overriding HOME='/home/runner/work/_temp/210c8615-95bd-4053-8cb3-e06b550849c5' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/sikepuri-algorithm.github.io/sikepuri-algorithm.github.io
Deleting the contents of '/home/runner/work/sikepuri-algorithm.github.io/sikepuri-algorithm.github.io'
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Fetching the repository
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/fix-bug-in-actions*:refs/remotes/origin/fix-bug-in-actions* +refs/tags/fix-bug-in-actions*:refs/tags/fix-bug-in-actions*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 11 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/fix-bug-in-actions*:refs/remotes/origin/fix-bug-in-actions* +refs/tags/fix-bug-in-actions*:refs/tags/fix-bug-in-actions*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 20 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/fix-bug-in-actions*:refs/remotes/origin/fix-bug-in-actions* +refs/tags/fix-bug-in-actions*:refs/tags/fix-bug-in-actions*
  Error: The process '/usr/bin/git' failed with exit code 1

actions/checkoutでこのようなバグが出てしまう。解決できなかったが、ref: ${{ github.head_ref }} を消したらPRでは動いた。

Pushでも動くことを確認

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant