0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00

FIX: populate repository name from global object

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-06-08 16:10:00 +05:30
Ursprung 522d4e9489
Commit 48fbb61dcc
2 geänderte Dateien mit 13 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -6,6 +6,8 @@ on:
- master - master
- main - main
pull_request: pull_request:
schedule:
- cron: '0 0 * * *'
jobs: jobs:
build: build:

Datei anzeigen

@ -6,6 +6,8 @@ on:
- master - master
- main - main
pull_request: pull_request:
schedule:
- cron: '0 0 * * *'
jobs: jobs:
build: build:
@ -51,23 +53,26 @@ jobs:
repository: discourse/discourse repository: discourse/discourse
fetch-depth: 1 fetch-depth: 1
- run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
shell: bash
- name: Install plugin - name: Install plugin
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
path: plugins/${{ github.event.repository.name }} path: plugins/${{ env.REPOSITORY_NAME }}
fetch-depth: 1 fetch-depth: 1
- name: Check spec existence - name: Check spec existence
id: check_spec id: check_spec
uses: andstor/file-existence-action@v1 uses: andstor/file-existence-action@v1
with: with:
files: "plugins/${{ github.event.repository.name }}/spec" files: "plugins/${{ env.REPOSITORY_NAME }}/spec"
- name: Check qunit existence - name: Check qunit existence
id: check_qunit id: check_qunit
uses: andstor/file-existence-action@v1 uses: andstor/file-existence-action@v1
with: with:
files: "plugins/${{ github.event.repository.name }}/test/javascripts" files: "plugins/${{ env.REPOSITORY_NAME }}/test/javascripts"
- name: Setup Git - name: Setup Git
run: | run: |
@ -100,7 +105,7 @@ jobs:
- name: Lint English locale - name: Lint English locale
if: matrix.build_type == 'backend' if: matrix.build_type == 'backend'
run: bundle exec ruby script/i18n_lint.rb "plugins/${{ github.event.repository.name }}/locales/{client,server}.en.yml" run: bundle exec ruby script/i18n_lint.rb "plugins/${{ env.REPOSITORY_NAME }}/locales/{client,server}.en.yml"
- name: Get yarn cache directory - name: Get yarn cache directory
id: yarn-cache-dir id: yarn-cache-dir
@ -125,9 +130,9 @@ jobs:
- name: Plugin RSpec with Coverage - name: Plugin RSpec with Coverage
if: matrix.build_type == 'backend' && steps.check_spec.outputs.files_exists == 'true' if: matrix.build_type == 'backend' && steps.check_spec.outputs.files_exists == 'true'
run: SIMPLECOV=1 bin/rake plugin:spec[${{ github.event.repository.name }}] run: SIMPLECOV=1 bin/rake plugin:spec[${{ env.REPOSITORY_NAME }}]
- name: Plugin QUnit - name: Plugin QUnit
if: matrix.build_type == 'frontend' && steps.check_qunit.outputs.files_exists == 'true' if: matrix.build_type == 'frontend' && steps.check_qunit.outputs.files_exists == 'true'
run: bundle exec rake plugin:qunit['${{ github.event.repository.name }}','1200000'] run: bundle exec rake plugin:qunit['${{ env.REPOSITORY_NAME }}','1200000']
timeout-minutes: 30 timeout-minutes: 30