1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Checking out current branch with actions/checkout@v2

This commit is contained in:
Jamie Hewitt 2022-05-18 12:45:07 +03:00
parent ca76294eec
commit 9adcf46ab2

View File

@ -192,13 +192,12 @@ jobs:
with:
node-version: '16'
- name: checkout
- name: checkout current branch
uses: actions/checkout@v2
- name: save current date
run: |
# do some operation that changes a file in the git repo
date > time.txt
with:
repository: 'oceanprotocol/ocean.js'
path: 'ocean.js'
ref: ${GITHUB_HEAD_REF#refs/heads/}
- name: Create code examples file
uses: actions/cache@v2
@ -219,9 +218,7 @@ jobs:
- name: commit
run: |
# Stage the file, commit and push
BRANCH=${GITHUB_HEAD_REF#refs/heads/}
echo ${BRANCH}
git checkout origin/${BRANCH}
git status
git add CodeExamples.md
git commit -m "Updating CodeExamples.md"
git push