Skip to content

Commit baabfce

Browse files
authored
Update action.yml
1 parent 65586ec commit baabfce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
steps:
1717
- name: 🍱 Compute prerequisites
1818
run: |
19-
echo "VERSION_NUMBER=$(uuidgen)" >> $GITHUB_ENV
19+
echo "VERSION_NUMBER=0.8.2" >> $GITHUB_ENV
2020
echo "BINARY_PATH=$(swift build --configuration release --show-bin-path)/public-api-diff" >> $GITHUB_ENV
2121
echo "HEAD_GITHUB_REPO=${{github.server_url}}/${{ github.event.pull_request.head.repo.full_name || github.repository}}.git" >> $GITHUB_ENV
2222
echo "BASE_GITHUB_REPO=${{github.server_url}}/${{github.repository}}.git" >> $GITHUB_ENV
@@ -26,6 +26,7 @@ runs:
2626
- uses: actions/checkout@v4
2727
with:
2828
repository: "Adyen/adyen-swift-public-api-diff"
29+
ref: ${{ env.VERSION_NUMBER }}
2930

3031
- name: 🛻 Restore Binary
3132
id: cache-restore
@@ -67,13 +68,13 @@ runs:
6768
$BINARY_PATH project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt"
6869
cat "$PROJECT_FOLDER/logs.txt"
6970
70-
# if [[ ${{ env.HEAD_GITHUB_REPO != env.BASE_GITHUB_REPO }} ]]; then
71+
if [[ ${{ env.HEAD_GITHUB_REPO != env.BASE_GITHUB_REPO }} ]]; then
7172
echo "---" >> $GITHUB_STEP_SUMMARY
7273
echo "> [!IMPORTANT]" >> $GITHUB_STEP_SUMMARY
7374
echo "> **Commenting on pull requests from forks is not possible** due to insufficient permissions." >> $GITHUB_STEP_SUMMARY
7475
echo "> Once merged, the output will be posted as an auto-updating comment under the pull request." >> $GITHUB_STEP_SUMMARY
7576
echo "---" >> $GITHUB_STEP_SUMMARY
76-
# fi
77+
fi
7778
7879
cat "$PROJECT_FOLDER/api_comparison.md" >> $GITHUB_STEP_SUMMARY
7980
shell: bash

0 commit comments

Comments
 (0)