diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index ca1f355..3ae8067 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -46,7 +46,6 @@ jobs: - name: Deploy run: | echo "Deploying..." - echo ${{ secrets.GITHUB_TOKEN }} git clone https://github-actions[bot]:${{ secrets.GITHUB_TOKEN }}@github.com/sheetal-purple/another repo # clone repo to track history mv repo/.git . # move cloned git history to root rm -rf repo @@ -54,15 +53,15 @@ jobs: git config --local user.name "github-actions[bot]" git add --force . git commit -m "add contents of dist-files v${{ env.SPEC_VERSION }}" + git log # echo "${{ secrets.GITHUB_TOKEN }}" > token.txt - echo ${{ secrets.GITHUB_TOKEN }} # Authorize GitHub CLI for the current repository and # create a pull-requests containing the updates. # gh auth login --with-token < token.txt git tag -a v${{ env.SPEC_VERSION }} -m "Update v${{ env.SPEC_VERSION }}" - # git push origin master --follow-tags --force + git push origin master --follow-tags --force env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SPEC_VERSION: 1.0.0