Centralized reusable CI/CD (GitHub) helpers and workflows. This is intended to be added to WAMP target repositories as a Git submodule.
Add this repo as a submodule to a WAMP related repo:
cd ~/scm/crossbario/autobahn-python
git submodule add https://github.com/wamp-proto/wamp-cicd.git .cicd
Clone a WAMP related repo including submodules:
git clone --recursive git@github.com:crossbario/autobahn-python.git
Initialize a WAMP related repo including submodules:
git submodule update --init --recursive
Update a WAMP related repo submodules:
git submodule update --remote --merge
In your .github/workflows/<workflow>.yml
:
jobs:
identifiers:
uses: ./.cicd/workflows/identifiers.yml
test:
needs: identifiers
runs-on: ubuntu-latest
env:
BASE_REPO: ${{ needs.identifiers.outputs.base_repo }}
BASE_BRANCH: ${{ needs.identifiers.outputs.base_branch }}
PR_NUMBER: ${{ needs.identifiers.outputs.pr_number }}
PR_REPO: ${{ needs.identifiers.outputs.pr_repo }}
PR_BRANCH: ${{ needs.identifiers.outputs.pr_branch }}
steps:
- name: Use identifiers
run: |
echo "Identifier: ${PR_NUMBER}-${PR_REPO}-${PR_BRANCH}"