diff --git a/action.yml b/action.yml index 2ff79b9..7e7a829 100644 --- a/action.yml +++ b/action.yml @@ -61,8 +61,6 @@ runs: echo "IS_CHANGE=true" >> $GITHUB_ENV if [ -n "$YAML_PATH" ]; then mv output_file $YAML_PATH - elif [ -f rockcraft.yaml ]; then - mv output_file rockcraft.yaml elif [ -d snap ]; then mv output_file snap/snapcraft.yaml else diff --git a/updatesnap/updatesnapyaml.py b/updatesnap/updatesnapyaml.py index 1be4b99..b201f2a 100755 --- a/updatesnap/updatesnapyaml.py +++ b/updatesnap/updatesnapyaml.py @@ -61,12 +61,6 @@ def get_yaml_file(self, project_url, yaml_path): data = self._github.get_file(project_url, yaml_path) except (ValueError, ConnectionError): data = None - if not data: - yaml_path = 'rockcraft.yaml' - try: - data = self._github.get_file(project_url, yaml_path) - except (ValueError, ConnectionError): - data = None return data