Skip to content

Commit

Permalink
ci: Reuse workflow for shell
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Nov 26, 2024
1 parent e997311 commit 1a9131b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/github/maintainers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Onboard consultants or Start a project

.. note::

The ``PAT`` environment variable is a personal access token of the ``ocp-deploy`` user with a ``repo`` scope. This user is the only member of the Robots team, which needs permission to push fixes to protected branches.
The ``PAT`` environment variable is a personal access token of the ``ocp-deploy`` user to access all repositories of the ``open-contracting`` organization with a *Contents* permission of *Read and write*. This user is the only member of the Robots team, which needs permission to push fixes to protected branches.

#. Add the new repositories to `pre-commit ci <https://github.com/organizations/open-contracting/settings/installations/20658712>`__
#. Add the new repositories to `Coveralls <https://coveralls.io/repos/new>`__
Expand Down
13 changes: 2 additions & 11 deletions docs/shell/samples/shell.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
name: Lint Shell
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
sudo apt update
sudo apt install devscripts shellcheck shfmt
- run: checkbashisms $(shfmt -f .)
- run: shellcheck $(shfmt -f .)
- run: shfmt -d -i 4 -sr $(shfmt -f .)
lint:
uses: open-contracting/.github/.github/workflows/shell.yml@main

0 comments on commit 1a9131b

Please sign in to comment.