vendor #892
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/vendor.yml" | |
workflow_dispatch: | |
schedule: | |
- cron: "* 2 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.sha }}-${{ github.base_ref || '' }} | |
cancel-in-progress: true | |
name: vendor | |
jobs: | |
vendor: | |
runs-on: ubuntu-latest | |
outputs: | |
sha: ${{ steps.commit.outputs.sha }} | |
name: "Update vendored sources" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: igraph/igraph | |
path: .git/igraph | |
fetch-depth: 0 | |
- uses: ./.github/workflows/git-identity | |
- uses: ./.github/workflows/custom/before-install | |
if: hashFiles('.github/workflows/custom/before-install/action.yml') != '' | |
- uses: ./.github/workflows/install | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
install-r: false | |
cache-version: vendor | |
needs: check | |
extra-packages: any::rcmdcheck, cpp11, decor | |
- uses: ./.github/workflows/custom/after-install | |
if: hashFiles('.github/workflows/custom/after-install/action.yml') != '' | |
- run: | | |
git checkout -- . | |
git clean -fdx | |
tools/update-cigraph.sh .git/igraph | |
rm -rf .git/igraph | |
- uses: ./.github/workflows/check | |
with: | |
results: ${{ runner.os }}-smoke-test | |
- if: github.event_name != 'pull_request' | |
run: | | |
git push -u origin HEAD |