I am running the below command;
steps:
- uses: actions/checkout@v1
- name: Get Git Id and diff files
run: |
echo “This is the current commit” $GITHUB_SHA
sha_pre=$(git log --pretty=format:"%H" --merges -n 1)
echo “This is the previous commit” $sha_pre
sha_diff=$(git diff --pretty=format: --name-only $GITHUB_SHA $sha_pre)
echo “$sha_diff” > DownloadDiff.txt
cat -n DownloadDiff.txt
I want this Diff.txt file as an input for Build.xml in the same project. I have a command "
<loadfile property=“textFile” srcfile="./DownloadDiff.txt" /> in build.xml to fetch the file. But unfortunately its not working.
Below is the output
“/home/runner/work/SalesforceDXCICD/SalesforceDXCICD/build.xml:10: /home/runner/work/SalesforceDXCICD/SalesforceDXCICD/DownloadDiff.txt doesn’t exist”
Please Help"