act: how to trigger a tag event locally
act version 0.2.7
workflow:
name: postgres action
on:
push:
branches:
- master
tags:
- v*
jobs:
build-and-push:
runs-on: ubuntu-16.04
timeout-minutes: 3
steps:
- name: Checkout
uses: actions/checkout@v2
- name: build and push image
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: byzanteam/nitrogen-postgres
registry: ${{ secrets.DOCKER_REGISTRY }}
tag_with_ref: true
tag.json
{
"ref": "refs/tags/v0.0.1"
}
log:
DEBU[0000] Loading workflows from '/PATH/.github/workflows'
DEBU[0000] Reading workflow '/PATH/.github/workflows/main.yml'
DEBU[0000] Using detected workflow event: push
DEBU[0000] Planning event: push
DEBU[0000] Reading event.json from /PATH/tag.json
DEBU[0000] Loading slug from git directory '/PATH/.git'
DEBU[0000] Found revision: 7c6d9e0bd6b4fcd2dfe32296e8298ae4c32ac2d3
DEBU[0000] Loading revision from git directory '/PATH/.git'
DEBU[0000] Found revision: 7c6d9e0bd6b4fcd2dfe32296e8298ae4c32ac2d3
DEBU[0000] HEAD points to '7c6d9e0bd6b4fcd2dfe32296e8298ae4c32ac2d3'
DEBU[0000] HEAD matches refs/heads/master
DEBU[0000] using github ref: refs/heads/master
[postgres action/build-and-push] š Start image=node:12.6-stretch-slim
DEBU[0000] Loading slug from git directory '/PATH/.git'
DEBU[0000] Found revision: 7c6d9e0bd6b4fcd2dfe32296e8298ae4c32ac2d3
DEBU[0000] Loading revision from git directory '/PATH/.git'
DEBU[0000] Found revision: 7c6d9e0bd6b4fcd2dfe32296e8298ae4c32ac2d3
DEBU[0000] HEAD points to '7c6d9e0bd6b4fcd2dfe32296e8298ae4c32ac2d3'
DEBU[0000] HEAD matches refs/heads/master
DEBU[0000] using github ref: refs/heads/master
[postgres action/build-and-push] š³ docker pull node:12.6-stretch-slim
questions:
- how to trigger a tag event locally?
- Is there an example of this?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 21 (11 by maintainers)
Add simple example: https://github.com/nektos/act/wiki/Beginnerās-guide#using-event-file-to-provide-complete-event-payload
@third774 and @leepowelldev - all events are documented, for example hereās the link for
push
https://developer.github.com/v3/activity/events/types/#pushevent