GitHub ci #113
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
# SPDX-License-Identifier: Apache-2.0 | |
# Hyperledger Repolinter Action | |
name: Repolinter | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
jobs: | |
lint: | |
runs-on: [ self-hosted, Linux ] | |
steps: | |
- name: export runner UID | |
run: echo "runner_uid=$UID" >> $GITHUB_ENV | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: 'Run Repolinter' | |
uses: newrelic/repolinter-action@v1 | |
with: | |
config_url: https://raw.githubusercontent.com/hyperledger-labs/hyperledger-community-management-tools/main/repo_structure/repolint.json | |
- name: Correct Ownership in GITHUB_WORKSPACE directory | |
uses: peter-murray/reset-workspace-ownership-action@v1 | |
with: | |
user_id: ${{ env.runner_uid }} |