Skip to content

Commit

Permalink
revert: "feat: Refactor workflows to use implicit calling"
Browse files Browse the repository at this point in the history
This reverts commit 8335098.
  • Loading branch information
dusansimic committed Apr 2, 2024
1 parent 3e24f9b commit eb05511
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
18 changes: 8 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Build and publish

on:
workflow_run:
workflows: [Tests]
types: completed

push:
tags:
- '*'
jobs:
tests:
uses: ./.github/workflows/tests.yml
build:
needs: [tests]
runs-on: ${{ matrix.os }}
if: github.event.workflow_run.conclusion == 'success' && github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
strategy:
matrix:
os:
Expand All @@ -18,16 +18,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v3
with:
node-version: 20
node-version: 16
cache: 'npm'
- name: Install Snapcraft
# TODO: Bump after we're sure it works with samuelmeuli/action-electron-builder@v1
uses: samuelmeuli/action-snapcraft@v1
if: startsWith(matrix.os, 'ubuntu')
- name: Build & publish Caprine
# TODO: Upgrade action in fork https://github.com/dusansimic/action-electron-builder
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v3
with:
node-version: 20
node-version: 16
cache: 'npm'
- name: Run tests
run: |
Expand Down

0 comments on commit eb05511

Please sign in to comment.