Skip to content

Commit

Permalink
chore(ci/build): use current ref for demo after build
Browse files Browse the repository at this point in the history
  • Loading branch information
ChipWolf committed Nov 18, 2023
1 parent 9349301 commit df8f6ec
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Image
name: Build and Test

"on":
workflow_dispatch:
Expand All @@ -20,8 +20,8 @@ env:
IMAGE_NAME: chipwolf/badgesort

jobs:
build:
name: Build
image:
name: Build Image
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -45,13 +45,16 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
badgesort:
if: startsWith(github.ref, 'refs/tags/') || github.event_name != 'push'
name: Run BadgeSort
needs: [build]
needs: [image]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: docker://ghcr.io/chipwolf/badgesort:latest
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 1
- name: Demo 1
uses: ./
with:
format: markdown
id: default
Expand All @@ -64,15 +67,17 @@ jobs:
opensea
sort: hilbert
style: for-the-badge
- uses: docker://ghcr.io/chipwolf/badgesort:latest
- name: Demo 2
uses: ./
with:
format: html
id: foobar
output: README.md
random: 5
sort: 'false'
style: flat-square
- uses: docker://ghcr.io/chipwolf/badgesort:latest
- name: Demo 3
uses: ./
with:
opts: --hue-rotate 240
id: example
Expand All @@ -86,7 +91,9 @@ jobs:
html5,insomnia,mongodb,nestjs,nodedotjs
npm,prettier,react,reactivex,redux
rollupdotjs,sass,styledcomponents,typescript,webpack
- uses: EndBug/add-and-commit@1bad3abcf0d6ec49a5857d124b0bfb52dc7bb081 # v9
- name: Commit and push
uses: EndBug/add-and-commit@1bad3abcf0d6ec49a5857d124b0bfb52dc7bb081 # v9
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')
with:
default_author: github_actions
message: 'chore(docs): refresh badgesort'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Release
name: Release Please

"on":
workflow_dispatch:
Expand All @@ -23,7 +23,7 @@ jobs:
release-please:
runs-on: ubuntu-22.04
steps:
- name: Please
- name: Release Please
uses: GoogleCloudPlatform/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # v3.7.13
with:
command: manifest
1 change: 1 addition & 0 deletions test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2

0 comments on commit df8f6ec

Please sign in to comment.