Bump node-fetch from 2.6.7 to 3.3.2 #255
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- run: yarn install | |
- run: yarn gen | |
- run: yarn build | |
- run: yarn test | |
env: | |
KITTYCAD_TOKEN: ${{ secrets.KITTYCAD_TOKEN }} | |
BASE_URL: "https://dev.api.kittycad.io/" | |
- name: check for changes | |
id: git-check | |
run: | | |
git add . | |
# git status | |
# git diff | |
# if git diff --exit-code; then | |
# echo "::set-output name=modified::true" | |
# else | |
# echo "::set-output name=modified::false" | |
# fi | |
if git status | grep -q "Changes to be committed" | |
then | |
echo "::set-output name=modified::true" | |
else | |
echo "::set-output name=modified::false" | |
fi | |
- name: Commit changes, if any | |
if: steps.git-check.outputs.modified == 'true' | |
run: | | |
git add . | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git | |
git fetch origin | |
# git checkout ${{github.ref_name }} | |
echo ${{ github.head_ref }} | |
git checkout ${{ github.head_ref }} | |
git commit -am "Generated new lib" || true | |
# git rebase origin/${{github.ref_name }} || true | |
git push | |
git push origin ${{ github.head_ref }} | |
# git push origin ${{github.ref_name }} | |
# git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
# git config --local user.name "github-actions[bot]" | |
# git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git | |
# git fetch origin | |
# git commit -am "Generated new lib" | |
# git push | |