This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
forked from contentful/contentful-action
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rewrite the existing mechanism
- Loading branch information
Gregor Adams
committed
Feb 12, 2021
1 parent
96cc17c
commit 6850970
Showing
18 changed files
with
50,227 additions
and
55,836 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,33 @@ | ||
name: Contentful Migration Example | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, closed] | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
name: Contentful Migration Example | ||
steps: | ||
- name: Check out code into the directory | ||
uses: actions/checkout@v1 | ||
|
||
- name: Contentful Migration | ||
id: migrate | ||
uses: ./ | ||
with: | ||
delete_after_merge: true | ||
env: # Set the secret as an input | ||
SPACE_ID: ${{ secrets.SPACE_ID }} | ||
MANAGEMENT_API_KEY: ${{ secrets.MANAGEMENT_API_KEY }} | ||
|
||
- name: Create commit comment | ||
uses: peter-evans/commit-comment@v1 | ||
with: | ||
body: | | ||
See changes to the [${{steps.migrate.outputs.environment_name }} ][1] Environment on Contentful. | ||
[1]: ${{steps.migrate.outputs.environment_url}} |
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 |
---|---|---|
|
@@ -64,3 +64,6 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
# IDE | ||
.idea |
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 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,5 @@ | ||
import { Environment } from "contentful-management/dist/typings/entities/environment"; | ||
export interface EnvironmentProps { | ||
environmentId: string; | ||
environment: Environment; | ||
} |
Oops, something went wrong.
6850970
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See changes to the GH-chore-rewrite Environment on Contentful.
6850970
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See changes to the master-2021-02-12-1433 Environment on Contentful.