What happened
Update Swagger doc workflow is not working appropriately
Anything else we need to know?
https://github.com/cloud-barista/cb-tumblebug/runs/4064628789?check_suite_focus=true
Run stefanzweifel/git-auto-commit-action@v4
Started: bash /home/runner/work/_actions/stefanzweifel/git-auto-commit-action/v4/entrypoint.sh
INPUT_REPOSITORY value: .
INPUT_STATUS_OPTIONS:
INPUT_BRANCH value:
From https://github.com/cloud-barista/cb-tumblebug
* [new branch] release-0.3.0 -> origin/release-0.3.0
* [new branch] release-0.4.0 -> origin/release-0.4.0
* [new tag] v0.4.0 -> v0.4.0
M src/api/rest/docs/docs.go
Your branch is up to date with 'origin/main'.
INPUT_ADD_OPTIONS:
INPUT_FILE_PATTERN: src/api/rest/docs/**
INPUT_COMMIT_OPTIONS:
INPUT_COMMIT_USER_NAME: GitHub Actions
INPUT_COMMIT_USER_EMAIL: [email protected]
INPUT_COMMIT_MESSAGE: Update Swagger docs
INPUT_COMMIT_AUTHOR: seokho-son <[email protected]>
[main ea709ea] Update Swagger docs
Author: seokho-son <[email protected]>
1 file changed, 11 insertions(+), 5 deletions(-)
INPUT_TAGGING_MESSAGE:
No tagging message supplied. No tag will be added.
INPUT_PUSH_OPTIONS:
remote: error: GH006: Protected branch update failed for refs/heads/main.
remote: error: At least 1 approving review is required by reviewers with write access.
To https://github.com/cloud-barista/cb-tumblebug
! [remote rejected] main -> main (protected branch hook declined)
error: failed to push some refs to 'https://github.com/cloud-barista/cb-tumblebug'
Error: Invalid status code: 1
at ChildProcess.<anonymous> (/home/runner/work/_actions/stefanzweifel/git-auto-commit-action/v4/index.js:17:19)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) {
code: 1
}
Error: Invalid status code: 1
at ChildProcess.<anonymous> (/home/runner/work/_actions/stefanzweifel/git-auto-commit-action/v4/index.js:17:19)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
It seems the workflow cannot push commit since remote: error: At least 1 approving review is required by reviewers with write access.
Ref the initial contribution : PR #804
/help
[μ]
main λΈλμΉκ° νμ¬ Protected branch μΈλ°, μ΄λ₯Ό ν΄μ νκ±°λ (쑰건 μν)@jihoon-seo
1λ²μ΄ μΌλ¨ κ°μ₯ μ¬μ΄ μμ ννμΌκΉμ?
μ λ.. γ γ 3λ²μ΄ μ’κΈ΄ νλ€μ.. μ‘°κΈ λ μμ¬ν μ μμ΄μ.. γ γ
μλμ κ°μ΄ force-pushλ κ°λ₯νκ² κ°κΈ΄νλ°μ. μ λ 3λ²μ΄ μμ νκ² κ°μ΅λλ€ ^^
Ref: https://github.com/stefanzweifel/git-auto-commit-action
- name: Commit generated Swagger docs
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: src/api/rest/docs/**
commit_message: Update Swagger docs
+ push_optinos: '--force'
@hermitkim1 μλ§ --force λ λ¦¬λ·°μ΄ μΉμΈ μμ΄λ κ°μ νΈμνλ€λ μλ―Έλ μλκ±°μμ.
μ 건 μλ§λ.. μ... baseκ° λ€λ₯Έ ννμΈ κ²½μ° force push ν΄μ£Όλ κ·Έκ²..
κ·ΈλΌ.. 3λ².. μΌλ‘ μμ ν΄λ³΄μμ£ ~!
@hermitkim1 @jihoon-seo νΉμ ~ μ½κ² μμ κ°λ₯νμ κ°μ? μλ contribution inviteκ° νμν κΉμ©?
μΌλ¨~ μ€λ₯ λ°©μ§λ₯Ό μν΄μ workflowλ disable ν΄λμμ΅λλ€.
κ·Έλ¦¬κ³ forked 리ν¬μμλ μ¬μ ν λμμ μλνλ λ― νλ€μ?
@seokho-son, νΉμ forked repository > Settings > Actions > General > Actions permissions μ μ€μ κ°(Allow local actions only)μ μ μ μμμ§μ? ^^
μΌλ¨~ μ€λ₯ λ°©μ§λ₯Ό μν΄μ workflowλ disable ν΄λμμ΅λλ€. κ·Έλ¦¬κ³ forked 리ν¬μμλ μ¬μ ν λμμ μλνλ λ― νλ€μ?
@hermitkim1 μ κ° Allow select actions μΌλ‘ μ€νΌμ μ‘μ λ€λ§ μ¬μ©νκ² νκ³ μμμ΄μ γ γ (μκ·Έλ¬μκΉμ)
stefanzweifel/git-auto-commit-action@v4 μκ±° μΆκ°νμ¬ μ²λ¦¬νμμ΅λλΉ.
/assign @jihoon-seo
@seokho-son
κ·ΈλΌ.. 3λ².. μΌλ‘ μμ ν΄λ³΄μμ£ ~!
@hermitkim1 @jihoon-seo νΉμ ~ μ½κ² μμ κ°λ₯νμ κ°μ? μλ contribution inviteκ° νμν κΉμ©?
μ κ° ν΄ λ³Όκ²μ π
Most helpful comment
μλμ κ°μ΄
force-pushλ κ°λ₯νκ² κ°κΈ΄νλ°μ. μ λ 3λ²μ΄ μμ νκ² κ°μ΅λλ€ ^^Ref: https://github.com/stefanzweifel/git-auto-commit-action