Change 7.7 to 8.1 (#663) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Better-Dime CD" | |
on: | |
push: | |
branches: [ develop ] | |
workflow_dispatch: | |
jobs: | |
develop: | |
runs-on: ubuntu-latest | |
environment: develop | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: "Setup the SSH known hosts file" | |
run: | | |
mkdir -p -m 0700 /home/runner/.ssh | |
echo $HOST_KEY >> /home/runner/.ssh/known_hosts | |
chmod 600 /home/runner/.ssh/known_hosts | |
env: | |
HOST_KEY: ${{ secrets.SSH_HOST_KEY }} | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Add remote | |
run: git remote add metanet [email protected]:~/git/better-dime/develop.git | |
- name: Push | |
run: git push -f metanet $BRANCH_NAME:master | |
env: | |
BRANCH_NAME: ${{ github.ref_name }} | |