2022-07-05 14:07:15 +00:00
|
|
|
name: Update Behat plugin
|
|
|
|
|
|
|
|
on: ['push']
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
2022-07-11 14:21:34 +00:00
|
|
|
if: github.repository == 'moodlehq/moodleapp' || github.repository == 'moodlemobile/moodleapp'
|
2022-07-05 14:07:15 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-01-19 10:43:39 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
2022-07-07 07:46:32 +00:00
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
2022-07-05 14:07:15 +00:00
|
|
|
- name: Install npm packages
|
|
|
|
run: npm ci --no-audit
|
|
|
|
- name: Update Behat plugin
|
|
|
|
env:
|
|
|
|
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
|
|
|
BEHAT_PLUGIN_GITHUB_REPOSITORY: ${{ secrets.BEHAT_PLUGIN_GITHUB_REPOSITORY }}
|
|
|
|
BEHAT_PLUGIN_BRANCH: ${{ secrets.BEHAT_PLUGIN_BRANCH }}
|
2022-07-07 07:47:48 +00:00
|
|
|
BEHAT_PLUGIN_EXCLUDE_FEATURES: ${{ secrets.BEHAT_PLUGIN_EXCLUDE_FEATURES }}
|
2022-07-05 14:07:15 +00:00
|
|
|
run: ./.github/scripts/update_behat_plugin.sh
|