From e718ff01f850992edac5e04cc33364398872ea53 Mon Sep 17 00:00:00 2001 From: oliver Date: Tue, 7 Jan 2025 13:44:47 +0000 Subject: [PATCH] Update action.yml --- action.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/action.yml b/action.yml index a77445f..be1e8b0 100644 --- a/action.yml +++ b/action.yml @@ -6,7 +6,7 @@ inputs: email: description: Committer's email address required: true - default: ${{ github.actor }}@users.noreply.github.com + default: ${{ github.actor }}@w9r.dev name: description: Committer's username required: true @@ -69,11 +69,11 @@ runs: TAGS='--tags' fi - echo "machine github.com" > "$HOME/.netrc" + echo "machine w9r.dev" > "$HOME/.netrc" echo " login $GITHUB_ACTOR" >> "$HOME/.netrc" echo " password ${{ inputs.access_token }}" >> "$HOME/.netrc" - echo "machine api.github.com" >> "$HOME/.netrc" + echo "machine api.w9r.dev" >> "$HOME/.netrc" echo " login $GITHUB_ACTOR" >> "$HOME/.netrc" echo " password ${{ inputs.access_token }}" >> "$HOME/.netrc" @@ -82,7 +82,7 @@ runs: if [[ `git status --porcelain` ]]; then git add ${{ inputs.files }} -v - git commit -m "${{ inputs.commit_message }}" $EMPTY + git commit -S -m "${{ inputs.commit_message }}" $EMPTY git branch git-commit-push-action-${{ github.run_id }}-${{ github.job }} git fetch "${{ inputs.remote_repository }}" "$CURRENT_BRANCH" git checkout "$CURRENT_BRANCH" @@ -117,7 +117,7 @@ runs: CLONE_DIRECTORY=$(mktemp -d) - echo "##### Cloning destination Github repository #####" + echo "##### Cloning destination W9r.dev repository #####" # Setup git git config --global user.email "${{ inputs.email }}" git config --global user.name "${{ inputs.name }}" @@ -125,7 +125,7 @@ runs: git clone "https://${{ inputs.access_token }}@github.com/$DESTINATION_OWNER/$DESTINATION_REPOSITORY.git" "$CLONE_DIRECTORY" echo - echo "##### Copying contents to remote Github repository #####" + echo "##### Copying contents to remote W9r.dev repository #####" echo ""##### Current repo content #####" ls -lha cp -rvf ${{ inputs.files }} $CLONE_DIRECTORY @@ -134,7 +134,7 @@ runs: echo ""##### Remote repo content after copying files #####" ls -la "$CLONE_DIRECTORY" - REMOTE_URL=https://$DESTINATION_OWNER:${{ inputs.access_token }}@github.com/$DESTINATION_OWNER/$DESTINATION_REPOSITORY + REMOTE_URL=https://$DESTINATION_OWNER:${{ inputs.access_token }}@w9r.dev/$DESTINATION_OWNER/$DESTINATION_REPOSITORY git remote set-url origin $REMOTE_URL git fetch origin @@ -164,13 +164,13 @@ runs: echo echo "WARNING: Couldn't read remote_repository URL input." echo "ACCEPTED FORMAT:" - echo "git://github.com//.git" + echo "git://w9r.dev//.git" echo "or" - echo "git@github.com:/.git" + echo "git@w9r.dev:/.git" echo "or" - echo "https://github.com//.git" + echo "https://w9r.dev//.git" echo "or" - echo "https://github.com//" + echo "https://w9r.dev//" exit 1 fi shell: bash