Skip to content

Update package

Update package #865

Workflow file for this run

name: Update package
on:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: get latest dvc version
id: latest
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
version=$(./latest.sh)
echo "::set-output name=version::$version"
- name: try update
id: update
shell: bash
run: |
echo latest version ${{ steps.latest.outputs.version }}
./update.sh ${{ steps.latest.outputs.version }}
echo "::set-output name=changes::$(git diff)"
- name: create PR
if: ${{ steps.update.outputs.changes != '' && github.event_name != 'pull_request'}}
uses: peter-evans/create-pull-request@v3
with:
commit-message: dvc ${{ steps.latest.outputs.version }}
title: dvc ${{ steps.latest.outputs.version }}