Update main.yml #8
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
name: Run Release Tracker | |
on: | |
push: | |
branches: | |
- actions-test | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Get Commit Message | |
id: commit-message | |
run: echo "message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT | |
- name: Run Bash Script | |
env: | |
COMMIT_MESSAGE: ${{ steps.commit-message.outputs.message }} | |
run: | | |
echo "$COMMIT_MESSAGE in script" | |
chmod +x ./release-tracker.sh | |
./release-tracker.sh | |
# run: | | |
# chmod +x ./path/to/your-script.sh | |
# ./path/to/your-script.sh "$COMMIT_MESSAGE" |