Skip to content

dvc 3.15.2 (#145)

dvc 3.15.2 (#145) #998

Workflow file for this run

name: Update package
on:
pull_request:
push:
branches: main
schedule:
- cron: '0 0 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: iterative/setup-cml@v1
- name: get latest dvc version
id: latest
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
version=$(./latest.sh)
echo "version=$version" >> $GITHUB_OUTPUT
- name: try update
id: update
shell: bash
run: |
echo latest version ${{ steps.latest.outputs.version }}
./update.sh ${{ steps.latest.outputs.version }}
echo "changes=$(git diff | tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: create PR
if: ${{ steps.update.outputs.changes != '' && github.event_name != 'pull_request'}}
run: |
cml pr create \
--token="${{ secrets.GITHUB_TOKEN }}" \
--message="dvc ${{ steps.latest.outputs.version }}" \
--title="dvc ${{ steps.latest.outputs.version }}" .