Skip to content

Commit

Permalink
downgraded upload artifact version to match download version. Also am…
Browse files Browse the repository at this point in the history
… trying upload with a different path
  • Loading branch information
Talha Ali committed Nov 30, 2023
1 parent d9b5c2b commit cb15670
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci_assemble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: properties
path: ./
name: 'properties'
path: './'

- name: Test if secrets properties exists
run: "stat -c%s secrets.properties"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,17 @@ private class SecretToFileAction : RegularAction<Action.Outputs>(
)
}

// - uses: actions/upload-artifact@v3
// with:
// name: my-artifact
// path: path/to/artifact/world.txt

private class UploadFile : RegularAction<Action.Outputs>(
actionOwner = "actions",
actionName = "upload-artifact",
actionVersion = "v3.1.3"
actionVersion = "v3"
) {
override fun buildOutputObject(stepId: String): Outputs = Outputs(stepId)

override fun toYamlArguments(): LinkedHashMap<String, String> =
linkedMapOf(
"name" to "properties",
"path" to "./secrets.properties"
"path" to "secrets.properties"
)

}
4 changes: 2 additions & 2 deletions .github/workflows/setup_secrets_properties_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
working-directory: './'
- id: 'step-2'
name: 'Upload secrets file'
uses: 'actions/upload-artifact@v3.1.3'
uses: 'actions/upload-artifact@v3'
with:
name: 'properties'
path: './secrets.properties'
path: 'secrets.properties'

0 comments on commit cb15670

Please sign in to comment.