feat: init action to post event in tracker #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [pull_request] | |
jobs: | |
test_job: | |
runs-on: ubuntu-latest | |
name: Test tracker-action | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Start Event in Tracker Action without lock | |
id: tracker | |
uses: ./ | |
with: | |
lock_enable: false | |
tracker_host: "192.168.64.1:8080" #local IP | |
status: "start" | |
related_id: ${{ steps.tracker.outputs.id }} #for get id if job failed | |
# Use the output from the `tracker` step | |
- name: Get the output id | |
run: echo "The event id was ${{ steps.tracker.outputs.id }}" | |
- name: Success Event in Tracker Action without lock | |
uses: ./ | |
with: | |
lock-enable: false | |
tracker_host: "192.168.64.1:8080" #local IP | |
related_id: ${{ steps.tracker.outputs.id }} | |
status: "success" |