Skip to content

Workflow file for this run

name: Publish on tag
on:
push:
branches:
- master
permissions:
contents: read # needed for checkout
jobs:
runDagger:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: List tags pointing to the current commit
run: |
tags=$(git tag --contains HEAD)
if [ -z "$tags" ]; then
echo "No tags point to the current commit."
else
echo "Tags pointing to the current commit: $tags"
echo "TAGS=$tags" >> $GITHUB_ENV
fi
- name: Call dagger onPush
run: |
echo tags: $TAGS
# cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sh; cd -; }
# dagger call on-push --dir=. --commit-json=
uses: dagger/dagger-for-github@v5
with:
version: "0.10.2"
verb: call
args: on-push --dir=. --tags=$TAGS
# args: node dagger/src/index.ts