Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanpro committed Jul 31, 2024
1 parent 5033c8b commit 32aeb51
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,34 @@ jobs:
containers: [0, 1, 2, 3, 4]

steps:
- name: Checkout 🛎
- name: Checkout screen builder
uses: actions/checkout@v4

- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
id: install-vfe
with:
text: ${{ github.event.pull_request.body }}
regex: 'ci:vue-form-elements:(.*?)[\s\n\r]'
flags: 's'

- name: debug
run: echo got '${{ steps.regex-match.outputs.group1 }}'
regex: 'ci:vue-form-elements:([^\s]+)'

- name: set-vfe-branch
run: |
export VFE_BRANCH=''
if [[ ${{ contains(github.event.pull_request.body, 'ci:next') }} ]]; then
export VFE_BRANCH=next
fi
if [[ ${{ steps.install-vfe.outputs.match != '' }} ]]; then
export VFE_BRANCH=${{ steps.install-vfe.outputs.group1 }}
fi
echo "VFE_BRANCH=${VFE_BRANCH}" >> $GITHUB_ENV
- name: Checkout vue-form-elements
if: ${{ env.VFE_BRANCH != '' }}
uses: actions/checkout@v4
with:
repository: ProcessMaker/vue-form-elements
path: vue-form-elements
ref: ${{ env.VFE_BRANCH }}

- name: Checkout 🛎
run: git clone --depth 1 -b ${{ steps.regex-match.outputs.group1 }} https://github.com/ProcessMaker/vue-form-elements
if: ${{ steps.regex-match.outputs.match != null }}

- name: Setup node env 🏗
uses: actions/setup-node@master
with:
Expand All @@ -38,15 +49,15 @@ jobs:
cache: 'npm'

- name: Install vue-form-elements dependencies
if: ${{ steps.regex-match.outputs.match != null }}
if: ${{ env.VFE_BRANCH != '' }}
working-directory: vue-form-elements
run: npm ci && npm run build-bundle

- name: Install dependencies 👨🏻‍💻
run: npm ci

- name: Link vue-form-elements
if: ${{ steps.regex-match.outputs.match != null }}
if: ${{ env.VFE_BRANCH != '' }}
run: npm link ./vue-form-elements

# - name: Run linter 👀
Expand Down

0 comments on commit 32aeb51

Please sign in to comment.