Skip to content

Update integration.yml #8

Update integration.yml

Update integration.yml #8

Workflow file for this run

name: Integration Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Version and Update Item
id: version-update-item
uses: provena/version-update-item-action@main
with:
offline_token: ${{ secrets.PROVENA_OFFLINE_TOKEN }}
domain: ${{ secrets.PROVENA_DOMAIN }}
realm_name: ${{ secrets.PROVENA_REALM_NAME }}
item_id: ${{ secrets.PROVENA_ITEM_ID }}
version_reason: "Testing GitHub Action which can version and update items"
update_reason: "Updating git custom attributes, as well as source URL."
attribute_updates: |
{
"user_metadata": {
"git_hash": "${{ github.sha }}",
"git_branch": "${{ github.ref_name }}",
"git_release": "${{ github.ref_type == 'tag' && github.ref_name || '' }}"
},
"source_url": "https://github.com/${{ github.repository }}"
}