Skip to content

Commit

Permalink
ci: fix deployment false possible
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Mar 18, 2024
1 parent 4afd8fc commit 807350e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
env:
AC_FORCE: ${{ inputs.force }}
AC_AUTOBUILD: false
AC_OUTPUT: common/temp/actions
AC_COMMIT_REPO: kc-workspace/github-actions
AC_COMMIT_BRANCH: ${{ inputs.branch || 'main' }}
steps:
Expand All @@ -52,9 +53,9 @@ jobs:
- name: Set up target repository
uses: actions/checkout@v4
with:
repository: kc-workspace/github-actions
repository: ${{ env.AC_COMMIT_REPO }}
ref: ${{ env.AC_COMMIT_BRANCH }}
path: ${{ env.AC_COMMIT_REPO }}
path: ${{ env.AC_OUTPUT }}
ssh-key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
fetch-depth: 0
- name: Deploy target repository
Expand Down
23 changes: 0 additions & 23 deletions common/scripts/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,26 +115,3 @@ _log() {
#######################################################

_main "$@"

# _GH_ACTIONS="${ACTIONS_TARGET_DIRECTORY:?}"
# _GH_WORKFLOW="$_GH_ACTIONS/.github/workflows"

# ! test -d "$_GH_WORKFLOW" && mkdir -p "$_GH_WORKFLOW"

# ## Copy workflows and resources
# cp -r "$_ROOT/resources/." "$_GH_ACTIONS"
# cp -r "$_ROOT/workflows/." "$_GH_WORKFLOW"

# cd "$_ROOT/$_GH_ACTIONS" || exit 1

# printf 'deploying '%s'\n' "$PWD"
# git status
# ## Deployment only if file changes
# if ! git diff --exit-code --quiet || test -n "$ACTIONS_FORCE_MODE"; then
# git config --local user.name "$ACTIONS_COMMIT_NAME"
# git config --local user.email "$ACTIONS_COMMIT_EMAIL"

# git add -A
# git commit -m "$ACTIONS_COMMIT_MSG"
# git push origin "$ACTIONS_TARGET_BRANCH"
# fi

0 comments on commit 807350e

Please sign in to comment.