Skip to content

Bump @webref/css from 6.10.0 to 6.10.1 (#1006) #10

Bump @webref/css from 6.10.0 to 6.10.1 (#1006)

Bump @webref/css from 6.10.0 to 6.10.1 (#1006) #10

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
permissions:
contents: write
deployments: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
uses: actions/checkout@v4
with:
submodules: true
- name: Check for version change
id: check
uses: EndBug/version-check@v2
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Tag new release
if: steps.check.outputs.changed == 'true'
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git tag v${{steps.check.outputs.version}}
git push origin v${{steps.check.outputs.version}}
- name: Deploy to Heroku
if: steps.check.outputs.changed == 'true'
uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "mdn-bcd-collector"
heroku_email: ${{secrets.HEROKU_EMAIL}}
- uses: actions/checkout@v4
if: steps.check.outputs.changed == 'true'
with:
repository: openwebdocs/mdn-bcd-results
path: mdn-bcd-results
- name: Run Selenium and collect results
if: steps.check.outputs.changed == 'true'
run: |
npm install -D typescript
npm install -D ts-node
RESULTS_DIR=mdn-bcd-results SECRETS_JSON=${{secrets.SECRETS_JSON}} npm run selenium
- name: Submit all results to results repo
if: steps.check.outputs.changed == 'true'
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.GOOBORG_BOT_GH_TOKEN }}
with:
source_file: "/"
destination_repo: "openwebdocs/mdn-bcd-results"
destination_folder: "mdn-bcd-results"
user_email: "[email protected]"
user_name: "gooborgstudios-bot"
commit_message: "Selenium v${{steps.check.outputs.version}} results"