Skip to content

Commit a6a01b6

Browse files
Update CI/CD
1 parent 90af746 commit a6a01b6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/main.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v2
1818
with:
19-
fetch-depth: 0
19+
fetch-depth: 0 # Esto es necesario para acceder al historial completo
2020

2121
- name: Set up Node.js
2222
uses: actions/setup-node@v2
@@ -46,16 +46,17 @@ jobs:
4646
BADGE_CONTENT=$(cat coverage/coverage_badge.md)
4747
sed -i "s|!\[Coverage\](.*)|${BADGE_CONTENT}|" README.md
4848
49+
- name: Show repository information
50+
run: |
51+
echo "Current Repository: $(git remote -v)"
52+
4953
- name: Commit and push changes
5054
run: |
5155
git config --local user.email "${{ secrets.GIT_USER_EMAIL }}"
5256
git config --local user.name "${{ secrets.GIT_USER_NAME }}"
5357
git add README.md
5458
git commit -m "Update coverage badge"
55-
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/OWNER/REPO.git HEAD:update-coverage-badge
56-
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/Mipmipp/localstack-ts-api-gateway-lambda-dynamodb-crud-example.git HEAD:update-coverage-badge
5960
6061
- name: Create Pull Request
6162
uses: peter-evans/create-pull-request@v3

0 commit comments

Comments
 (0)