trigger-workflow #14
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
# This is a basic workflow that is manually triggered | |
name: Update sha256 | |
on: | |
repository_dispatch: | |
types: [trigger-workflow] | |
jobs: | |
update_sha256_and_commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Git | |
run: | | |
git config --global user.name "PeterSuh-Q3" | |
git config --global user.email [email protected] | |
- name: update sha256 for platform.json | |
run: | | |
#echo "Param1: ${{ github.event.client_payload.param1 }}" | |
ROOT_PATH=${{ github.workspace }} | |
cd ${ROOT_PATH}/all-modules/ | |
sh syncsha.sh | |
date > date.log | |
- name: Commit and push changes | |
run: | | |
git add . | |
git commit -a -m "update sha256 for platform.json" | |
git push |