Skip to content

Commit

Permalink
only git log
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetal-purple committed Jan 4, 2024
1 parent 91179b3 commit f3cf44c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,22 @@ 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
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
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

0 comments on commit f3cf44c

Please sign in to comment.