Skip to content

Commit

Permalink
fix: ubah pake manual
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jul 21, 2024
1 parent 9850b84 commit 13c61ec
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,14 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.BASIC_DOCKER_CONFIG_REPO_PAT }}
repository: sora-vp/baseline-docker

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Rename version
env:
Expand All @@ -170,19 +172,22 @@ jobs:
fi
if [ "$CHOOSER_UPDATE" == "success" ]; then
sed -i 's/rmecha\/sora-baseline-client-chooser:[^ ]*/rmecha\/sora-baseline-client-chooser:'"$REF_NAME"'/' docker-compose.yml
fi
- name: Inspect output
run: cat docker-compose.yml && git diff

- name: Push changes to basic docker compose config repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.BASIC_DOCKER_CONFIG_REPO_PAT }}
fi
with:
destination-github-username: sora-vp
destination-repository-name: baseline-docker
create-target-branch-if-needed: true
user-email: ${{ secrets.MAINTAINER_EMAIL }}
target-branch: ${{ steps.extract_branch.outputs.branch }}
- name: Commit changes
run: git commit -am 'bot-update: update "$REF_NAME" https://github.com/sora-vp/baseline/commit/${{ github.sha }}'

- name: Debug
run: git log

# - name: Push changes to basic docker compose config repository
# uses: cpina/github-action-push-to-another-repository@main
# env:
# API_TOKEN_GITHUB: ${{ secrets.BASIC_DOCKER_CONFIG_REPO_PAT }}
#
# with:
# destination-github-username: sora-vp
# destination-repository-name: baseline-docker
# create-target-branch-if-needed: true
# user-email: ${{ secrets.MAINTAINER_EMAIL }}
# target-branch: ${{ steps.extract_branch.outputs.branch }}

0 comments on commit 13c61ec

Please sign in to comment.