Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update publish and format TDE-792 #4

Merged
merged 5 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
18 changes: 18 additions & 0 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pull Request Action
on:
push:
branches:
- feat/bot-*
jobs:
create-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: pull-request
run: |
gh pr edit ${{ github.ref_name }} --title '${{ github.event.head_commit.message }}' --body '' &&
gh pr reopen ${{ github.ref_name }} ||
gh pr create --base master --title '${{ github.event.head_commit.message }}' --body ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ jobs:
main:
name: Publish
runs-on: ubuntu-latest
concurrency: publish-${{ github.ref }}

permissions:
id-token: write
contents: read
Expand All @@ -19,7 +21,7 @@ jobs:
with:
args: stac-catalog --output stac/catalog.json --template template/catalog.json /github/workspace/stac/

# FIXME: no collections exist so nothing to validate
# FIXME: add when content in repo
# - name: Validate STAC
# run: |
# # Enable double star operator
Expand Down
2 changes: 1 addition & 1 deletion template/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"stac_version": "1.0.0",
"type": "Catalog",
"id": "linz-elevation",
"description": "Toitū Te Whenua Land Information New Zealand makes New Zealand's publicly owned elevation archive freely available to use under an open licence. ",
"description": "Toitū Te Whenua Land Information New Zealand makes New Zealand's publicly owned elevation archive freely available to use under an open licence.",
"links": [
{ "rel": "self", "href": "https://linz-elevation.s3.ap-southeast-2.amazonaws.com/catalog.json" },
{ "rel": "root", "href": "./catalog.json" }
Expand Down