Update action.yml #4
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: | |
push: | |
branches: ["main"] | |
jobs: | |
push-workflow: | |
runs-on: ubuntu-latest | |
steps: | |
# This step is required | |
- name: checkout source | |
uses: actions/checkout@master | |
with: | |
fetch-depth: 2 # Fetch enough history to compare commits | |
- name: Total Changes | |
uses: ./ | |
id: versioning | |
with: | |
source-commit: ${{ github.event.after }} | |
# target-commit is not required here since is calculated | |
# on runtime based on the merge branch | |
github-token: ${{ secrets.GH_TOKEN }} | |
- name: Show Output | |
run: echo '${{ toJson(steps.versioning.outputs) }}' |