You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Determine the next version without tagging the branch. The workflow can use the outputs new_tag and tag in subsequent steps. Possible values are true and false (default)"
8
+
default: false
9
+
required: false
10
+
type: string
11
+
print-tag:
12
+
description: "Echo tag to console"
13
+
default: true
14
+
required: false
15
+
type: string
16
+
outputs:
17
+
tag:
18
+
description: "The value of the latest tag after running this action"
19
+
value: ${{ jobs.tag-job.outputs.tag }}
20
+
new-tag:
21
+
description: "The value of the newly created tag"
22
+
value: ${{ jobs.tag-job.outputs.new-tag }}
23
+
secrets:
24
+
BROADBOT_TOKEN:
25
+
required: true
26
+
27
+
jobs:
28
+
# On tag vs. new-tag.
29
+
# The new-tag is always the tag resulting from a bump to the original tag.
30
+
# However, the tag is by definition the value of the latest tag after running the action,
31
+
# which might not change if dry run is used, and remains same as the original tag.
32
+
tag-job:
33
+
runs-on: ubuntu-latest
34
+
outputs:
35
+
tag: ${{ steps.tag.outputs.tag }}
36
+
new-tag: ${{ steps.tag.outputs.new_tag }}
37
+
steps:
38
+
- name: Checkout current code
39
+
uses: actions/checkout@v3
40
+
with:
41
+
token: ${{ secrets.BROADBOT_TOKEN }} # this allows the push to succeed later
echo "env.CHECKOUT_BRANCH=${{ env.CHECKOUT_BRANCH }} # If not empty, this reflects the branch being checked out (generated by Pact Broker)"
177
218
echo "env.CHECKOUT_SHA=${{ env.CHECKOUT_SHA }} # If not empty, this reflects the git commit hash of the branch being checked out (generated by Pact Broker)"
178
219
echo "env.CURRENT_BRANCH=${{ env.CURRENT_BRANCH }} # This reflects the branch being checked out if CHECKOUT_BRANCH is empty"
@@ -181,6 +222,7 @@ jobs:
181
222
echo "env.PROVIDER_SHA=${{ env.PROVIDER_SHA }} # This reflects the provider version for pact verification"
182
223
echo "env.CONSUMER_BRANCH=${{ env.CONSUMER_BRANCH }} # This reflects the consumer branch for pact verification (generated by Pact Broker)"
183
224
echo "env.CONSUMER_SHA=${{ env.CONSUMER_SHA }} # This reflects the consumer version for pact verification (generated by Pact Broker)"
225
+
echo "env.PACT_PROVIDER_VERSION=${{ env.PACT_PROVIDER_VERSION }} # Deprecate env.PACT_PROVIDER_COMMIT. This new envvar is used for migrating GIT hash to app versioning"
184
226
./gradlew --build-cache verifyPacts --scan
185
227
- name: Upload Test Reports
186
228
if: always()
@@ -193,14 +235,19 @@ jobs:
193
235
# The can-i-deploy job will run as a result of a workspace manager PR.
194
236
# It reports the pact verification statuses on all deployed environments.
0 commit comments