Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenSimon committed Jan 17, 2025
1 parent b692910 commit b7a485f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/pipeline-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ on:
runs-on:
type: string
default: ubuntu-latest

pipeline-fs-script:
type: string
jobs:
execute:
runs-on: ${{ inputs.runs-on }}
Expand Down Expand Up @@ -47,6 +48,18 @@ jobs:
aws-region: us-west-2
role-to-assume: ${{ secrets.TEST_IAM_ROLE }}

- name: Setup scripts
run: mkdir -p .scripts && echo "$PWD/.scripts" >> $GITHUB_PATH
if: inputs.pipeline-fs-script

- name: Pipeline FS
run: echo "${{ inputs.pipeline-fs-script }}" | base64 --decode > .scripts/pipeline-fs && chmod +x .scripts/pipeline-fs
if: inputs.pipeline-fs-script

- name: Pipeline FS (test)
run: pipeline-fs upload "runs/${{ fromJSON(inputs.step-config).synapseStepKeyHash }}/test" package.json
if: inputs.pipeline-fs-script

- uses: Cohesible/get-credentials-action@09824e319b5811b924cfbdd208129f2681127ee4

# - run: curl -fsSL "https://synap.sh/install?stepKeyHash=${{ fromJSON(inputs.step-config).synapseStepKeyHash }}" | bash
Expand Down
6 changes: 4 additions & 2 deletions src/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4907,8 +4907,10 @@ async function syncHeads(repo: DataRepository, remote: RemoteArtifactRepository,
const isLocalNewer = !remoteHead?.timestamp || (localHead && (new Date(remoteHead.timestamp).getTime() < new Date(localHead.timestamp).getTime()))
if (isLocalNewer && localHead) {
getLogger().debug(`Pushing local changes to remote`, localHead.id)
await remote.push(localHead.storeHash)
if (localHead.programHash) {
if (localHead.storeHash !== remoteHead?.storeHash) {
await remote.push(localHead.storeHash)
}
if (localHead.programHash && localHead.programHash !== remoteHead?.programHash) {
await remote.push(localHead.programHash)
}
await remote.putHead(localHead)
Expand Down

0 comments on commit b7a485f

Please sign in to comment.