feat(reactjs-todo): add social login for react todo sample app #124
Workflow file for this run
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
name: 'Destroy preview env' | |
on: | |
pull_request: | |
branches: | |
- develop | |
- next | |
- '!dependabot/**' | |
types: | |
- closed | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
NX_CLOUD_ENCRYPTION_KEY: ${{ secrets.NX_CLOUD_ENCRYPTION_KEY }} | |
jobs: | |
closed: | |
container: | |
image: ghcr.io/ryanbas21/update-cors-am-github-action:main | |
runs-on: ubuntu-latest | |
steps: | |
- uses: okteto/context@latest | |
with: | |
token: ${{ secrets.OKTETO_TOKEN }} | |
- name: Get Preview Endpoints | |
id: preview_urls | |
run: | | |
URLS=$(okteto preview endpoints pr-${{ github.event.number }}-${{ github.actor }} -o json | jq -c) | |
echo "::set-output name=preview_urls::$URLS" | |
- uses: ryanbas21/update-cors-am-github-action@latest | |
with: | |
AM_URL: ${{ secrets.AM_URL }} | |
USERNAME: ${{ secrets.AM_USERNAME }} | |
PASSWORD: ${{ secrets.AM_PASSWORD }} | |
REALM_PATH: ${{ secrets.AM_REALM }} | |
ORIGINS: ${{ steps.preview_urls.outputs.preview_urls }} | |
COOKIE_NAME: ${{ secrets.COOKIE_NAME }} | |
REDIRECTION_URIS: ${{ secrets.REDIRECTION_URIS }} | |
REMOVE: true | |
CORS_CONFIG_NAME: 'ForgeRockSDK' | |
- name: Destroy preview environment | |
uses: okteto/destroy-preview@latest | |
with: | |
name: pr-${{ github.event.number }}-${{ github.actor }} |