-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dff6bbe
commit 62d1cc6
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,13 @@ jobs: | |
uses: EndBug/version-check@v2 | ||
with: | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Tag new release | ||
if: steps.check.outputs.changed == 'true' | ||
- name: Configure Git | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
- name: Tag new release | ||
if: steps.check.outputs.changed == 'true' | ||
run: | | ||
git tag v${{steps.check.outputs.version}} | ||
git push origin v${{steps.check.outputs.version}} | ||
- name: Deploy to Heroku | ||
|
@@ -42,21 +44,23 @@ jobs: | |
repository: openwebdocs/mdn-bcd-results | ||
path: mdn-bcd-results | ||
token: ${{ secrets.GOOBORG_BOT_GH_TOKEN }} | ||
- name: Remove old results | ||
if: steps.check.outputs.changed == 'true' | ||
run: | | ||
git rm mdn-bcd-results/*.json | ||
git commit -m "Remove old results" | ||
- name: Run Selenium and collect results | ||
if: steps.check.outputs.changed == 'true' | ||
run: | | ||
npm install -D typescript | ||
npm install -D ts-node | ||
rm mdn-bcd-results/*.json | ||
RESULTS_DIR=mdn-bcd-results npm run selenium | ||
env: | ||
SECRETS_JSON: ${{secrets.SECRETS_JSON}} | ||
- name: Submit all results to the results repo | ||
if: steps.check.outputs.changed == 'true' | ||
run: | | ||
cd mdn-bcd-results | ||
git config user.name "gooborgstudios-bot" | ||
git config user.email "[email protected]" | ||
git add *.json | ||
git commit -m "Selenium v${{steps.check.outputs.version}} results" | ||
git push origin main |