Skip to content

Commit

Permalink
Merge pull request #4 from linz/ci/update-publish-format-tde-792
Browse files Browse the repository at this point in the history
ci: update publish and format TDE-792
  • Loading branch information
blacha authored Aug 15, 2023
2 parents 9b137be + 682c283 commit f2b50f0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
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

0 comments on commit f2b50f0

Please sign in to comment.