Skip to content

Commit

Permalink
Test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
synthetixio-team authored and noisekit committed Oct 12, 2023
1 parent 6a15884 commit 8a9a675
Showing 1 changed file with 20 additions and 25 deletions.
45 changes: 20 additions & 25 deletions .github/workflows/release-lp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,31 @@ jobs:
release-lp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup SSH Key and known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
echo "$SSH_PRIVATE_KEY" > ~/.ssh/synthetix-team
chmod 600 ~/.ssh/synthetix-team
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add ~/.ssh/synthetix-team
- run: git config --global user.email engineering@snxdao.io
- run: git config --global user.name synthetix-team

- name: Test commit
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
git commit --allow-empty --message "Test commit"
git push
ssh-keyscan github.com >> "$HOME/.ssh/known_hosts"
echo "$SSH_PRIVATE_KEY" > "$HOME/.ssh/id_rsa"
chmod 600 "$HOME/.ssh/id_rsa"
echo "Host github.com" > $HOME/.ssh/config
echo " HostName github.com" >> $HOME/.ssh/config
echo " User git" >> $HOME/.ssh/config
echo " Port 22" >> $HOME/.ssh/config
echo " IdentityFile $HOME/.ssh/id_rsa" >> $HOME/.ssh/config
cat "$HOME/.ssh/config"
# - run: git clone git@github.com:${{github.repository}}.git --verbose --depth 1 --no-tags --single-branch app
# - run: cd app
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git config user.email engineering@snxdao.io
- run: git config user.name synthetix-team
- run: git remote set-url origin "git@github.com:${{github.repository}}.git"

- run: git checkout "${{ github.sha }}"
- run: git branch release/test2
- run: git checkout release/test2
- run: git branch release/test3
- run: git checkout release/test3

- run: git push --set-upstream --force origin release/test2
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
- run: git push --set-upstream --force origin release/test3

0 comments on commit 8a9a675

Please sign in to comment.