.github/workflows/ubuntu.yml in html2doc-1.0.0 vs .github/workflows/ubuntu.yml in html2doc-1.0.1

- old
+ new

@@ -1,14 +1,13 @@ -# Auto-generated !!! Do not edit it manually -# use ci-master https://github.com/metanorma/metanorma-build-scripts +# Auto-generated by Cimas: Do not edit it manually! +# See https://github.com/metanorma/cimas name: ubuntu on: push: branches: [ master ] pull_request: - branches: [ '**' ] jobs: test-linux: name: Test on Ruby ${{ matrix.ruby }} Ubuntu runs-on: ubuntu-latest @@ -23,10 +22,22 @@ with: ruby-version: ${{ matrix.ruby }} architecture: 'x64' - name: Update gems run: | - gem install bundler + gem install bundler bundle install --jobs 4 --retry 3 - name: Run specs run: | bundle exec rake + - name: Trigger dependent repositories + if: github.ref == 'refs/heads/master' && matrix.ruby == '2.6' + env: + GH_USERNAME: ${{ secrets.PAT_USERNAME }} + GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }} + run: | + curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh + [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env + for repo in $DEPENDENT_REPOS + do + sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "{ \"ref\": \"${GITHUB_REF}\" }" + done