-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding initial Action * Fixing id * Using GITHUB_ENV instead * Running the action * Trying again * switching to node20 * Using docker * updating sha * switching to composite * updating sha * updating action * updating sha * updating sha * updating action * updating sha * updating action * updating sha * updating sha * tmp disabled workflows + added cancelling * fixing output * wrapping markdown output into a string * passing the filepath as output * Adding output test * fixing format * mhh * actually fixing yml format * fixing typo * Removing plist * experimenting * using DIFF_OUTPUT_FILEPATH * trying out some things * moving the commenting to the action * actually executing the diff * reactivated workflows * updating action * Renamed workflows * trying to get the last version of the action in the detection script * using right branch name * switching back to the github-action branch * fixing typo --------- Co-authored-by: Alex Guretzki <[email protected]>
- Loading branch information
Showing
4 changed files
with
86 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 🧹 Cancel duplicate work flows | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
cancel-multiple-workflow-runs: | ||
name: "Cancel the self CI workflow run" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Cancel 'detect-api-changes'" | ||
uses: potiuk/cancel-workflow-runs@master | ||
with: | ||
cancelMode: allDuplicates | ||
cancelFutureDuplicates: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
workflowFileName: detect-api.changes.yml | ||
- name: "Cancel 'build-release'" | ||
uses: potiuk/cancel-workflow-runs@master | ||
with: | ||
cancelMode: allDuplicates | ||
cancelFutureDuplicates: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
workflowFileName: build-release.yml | ||
- name: "Cancel 'run-tests'" | ||
uses: potiuk/cancel-workflow-runs@master | ||
with: | ||
cancelMode: allDuplicates | ||
cancelFutureDuplicates: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
workflowFileName: run-tests.yml |
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 file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 'Swift Public API Diff' | ||
description: 'This tool allows comparing 2 versions of a swift (sdk) project and lists all changes in a human readable way. And outputs it to the step summary or PR comment.' | ||
inputs: | ||
platform: | ||
description: 'The platform to build the project for (iOS/macOS)' | ||
required: true | ||
new: | ||
description: 'Specify the updated version to compare to' | ||
required: true | ||
old: | ||
description: 'Specify the old version to compare to' | ||
required: true | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: "Run Diff" | ||
run: | | ||
NEW=${{ inputs.new }} | ||
OLD=${{ inputs.old }} | ||
PLATFORM=${{ inputs.platform }} | ||
PROJECT_FOLDER=$PWD | ||
echo $PROJECT_FOLDER | ||
swift run public-api-diff project --new "$NEW" --old "$OLD" --platform "$PLATFORM" --output "$PROJECT_FOLDER/api_comparison.md" --log-output "$PROJECT_FOLDER/logs.txt" | ||
cat "$PROJECT_FOLDER/logs.txt" | ||
cat "$PROJECT_FOLDER/api_comparison.md" >> $GITHUB_STEP_SUMMARY | ||
shell: bash | ||
|
||
- if: ${{ github.event.pull_request.base.ref != '' }} | ||
name: 📝 Comment on PR | ||
uses: thollander/actions-comment-pull-request@v3 | ||
with: | ||
file-path: "${{ github.workspace }}/api_comparison.md" | ||
comment-tag: api_changes | ||
mode: recreate | ||
|
||
|
||
|