Update Resource Schema #2
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: Pull Files from Another Repository on Push | |
env: | |
SOURCE_REPO: pulumi/pulumi-aws | |
USERNAME: ${{ github.actor }} | |
PATH_SOURCE_CHECKOUT: temp_folder | |
TARGET_FILE: "provider/cmd/pulumi-resource-aws/schema.json" | |
on: | |
workflow_dispatch: | |
jobs: | |
pull-file: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout pulumi/pulumi-aws | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ env.SOURCE_REPO }} | |
path: ${{ env.PATH_SOURCE_CHECKOUT }} | |
- name: Update | |
run: | | |
cd $PATH_SOURCE_CHECKOUT | |
if [[ $(git log --since='1000 day ago' ${{ env.TARGET_FILE }} | wc -w) -gt 0 ]];then echo 'We have changes';else echo 'no change';fi | |