Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/update-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ jobs:
service = 'cloud'
telemetry_enabled = false
output = 'plaintext'
EOF
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main fix

run: |
echo "$CONFIG_CONTENT" > "$CONFIG_PATH"
- env:
CONFIG_PATH: ${{ steps.config-path.outputs.CONFIG_PATH }}
run: cat "$CONFIG_PATH"
- run: make e2e-test
env:
TEST_CMD: gotestsum --junitfile e2e-tests.xml --format standard-verbose --
Expand Down Expand Up @@ -211,7 +213,7 @@ jobs:
paths: e2e-tests.xml
commit:
runs-on: ubuntu-latest
if: always() && github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'update-snapshots'
if: success() && github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'update-snapshots'
needs: update-tests
steps:
- name: set Apix Bot token
Expand Down Expand Up @@ -243,6 +245,25 @@ jobs:
with:
github_token: ${{ steps.app-token.outputs.token }}
labels: update-snapshots
comment:
runs-on: ubuntu-latest
if: failure() && github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'update-snapshots'
needs: update-tests
steps:
- name: set Apix Bot token
id: app-token
uses: mongodb/apix-action/token@6c3fde402c21942fa46cde003f190c2b23c59530
with:
app-id: ${{ secrets.APIXBOT_APP_ID }}
private-key: ${{ secrets.APIXBOT_APP_PEM }}
- uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: ${{ steps.app-token.outputs.token }}
labels: update-snapshots
- uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405
with:
header: test
message: "Failed to update test snapshots."
pr:
runs-on: ubuntu-latest
if: success() && github.event_name != 'pull_request'
Expand Down
Loading